fix(frontend):mainwindow will hide after clicking the buttons on the create index dialog.
This commit is contained in:
parent
5efedb4df3
commit
5bc1c03ddf
|
@ -156,7 +156,8 @@ void MainWindow::initConnections()
|
|||
setSearchMethodConfig(isCreateIndex, isAskAgain);
|
||||
});
|
||||
connect(m_askDialog, &CreateIndexAskDialog::focusChanged, this, [ & ] {
|
||||
if (QApplication::activeWindow() != this) {
|
||||
if (kdk::WindowManager::currentActiveWindow() != this->winId() &&
|
||||
kdk::WindowManager::currentActiveWindow() != m_askDialog->winId()) {
|
||||
this->tryHideMainwindow();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue