[Fix] Tray icon click won't work after Win+D.
This commit is contained in:
parent
d3181a36f2
commit
455f87b851
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue