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