fix(frontend):wayland下关闭索引弹窗会导致搜索退出。
This commit is contained in:
parent
254a4bc9d8
commit
2aabddb196
|
@ -148,8 +148,7 @@ void MainWindow::initConnections()
|
||||||
setSearchMethodConfig(isCreateIndex, isAskAgain);
|
setSearchMethodConfig(isCreateIndex, isAskAgain);
|
||||||
});
|
});
|
||||||
connect(m_askDialog, &CreateIndexAskDialog::focusChanged, this, [ & ] {
|
connect(m_askDialog, &CreateIndexAskDialog::focusChanged, this, [ & ] {
|
||||||
if (kdk::WindowManager::currentActiveWindow() != this->winId() &&
|
if (kdk::WindowManager::getPid(kdk::WindowManager::currentActiveWindow()) != QApplication::applicationPid()) {
|
||||||
kdk::WindowManager::currentActiveWindow() != m_askDialog->winId()) {
|
|
||||||
this->tryHideMainwindow();
|
this->tryHideMainwindow();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue