修复搜索一次后隐藏界面再次唤醒会闪一下的问题
This commit is contained in:
parent
cbf833fa08
commit
91b658da60
|
@ -368,10 +368,11 @@ bool MainWindow::tryHideMainwindow()
|
|||
if (!m_isAskDialogVisible && QApplication::activeModalWidget() == nullptr) {
|
||||
qDebug()<<"Mainwindow will be hidden";
|
||||
m_currentSearchAsked = false;
|
||||
this->hide();
|
||||
m_askTimer->stop();
|
||||
m_researchTimer->stop();
|
||||
Q_EMIT m_searchResultPage->stopSearch();
|
||||
this->clearSearchResult();
|
||||
this->hide();
|
||||
return true;
|
||||
} else {
|
||||
//有上层弹窗未关闭,不允许隐藏主界面
|
||||
|
|
Loading…
Reference in New Issue