[Fix] Tray icon click won't work after Win+D.

This commit is contained in:
iaom 2021-06-26 14:07:28 +08:00
parent d3181a36f2
commit 455f87b851
1 changed files with 2 additions and 0 deletions

View File

@ -129,6 +129,8 @@ MainWindow::MainWindow(QWidget *parent) :
this->m_searchLayout->focusIn(); //打开主界面时输入框夺焦,可直接输入 this->m_searchLayout->focusIn(); //打开主界面时输入框夺焦,可直接输入
this->raise(); this->raise();
this->activateWindow(); this->activateWindow();
} else if(this->isVisible()&&!this->isActiveWindow()) {
this->activateWindow();
} else { } else {
tryHideMainwindow(); tryHideMainwindow();
} }