fix(frontend):mainwindow will hide after clicking the buttons on the create index dialog.
This commit is contained in:
parent
62b82585a9
commit
14a5ff23ce
|
@ -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