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