Skip to content

Commit

Permalink
Revert "Update windowsmanager.cpp"
Browse files Browse the repository at this point in the history
  • Loading branch information
WLYYL authored Dec 20, 2021
1 parent af91cd4 commit 726dfa1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/main/windowsmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void WindowsManager::runQuakeWindow(TermProperties properties)
m_quakeWindow->setAnimationFlag(false);
m_quakeWindow->show();
//Add by ut001000 renfeixiang 2020-11-16 开始从上到下的动画
//m_quakeWindow->topToBottomAnimation();
m_quakeWindow->topToBottomAnimation();
m_quakeWindow->activateWindow();
// 雷神创建的第一个时候,m_quakeWindow仍为null,需要在这里更正一下.
Service::instance()->updateShareMemoryCount(m_quakeWindow == nullptr ? m_widgetCount : m_widgetCount - 1);
Expand All @@ -57,7 +57,7 @@ void WindowsManager::quakeWindowShowOrHide()
if (!m_quakeWindow->isVisible()) {
m_quakeWindow->setAnimationFlag(false);
m_quakeWindow->show();
//m_quakeWindow->topToBottomAnimation();
m_quakeWindow->topToBottomAnimation();
m_quakeWindow->activateWindow();
return;
}
Expand Down Expand Up @@ -85,11 +85,11 @@ void WindowsManager::quakeWindowShowOrHide()
return;
}
//终端未激活则激活
// if(!m_quakeWindow->isActiveWindow()) {
// m_quakeWindow->activateWindow();
// m_quakeWindow->focusCurrentPage();
// return;
// }
if(!m_quakeWindow->isActiveWindow()) {
m_quakeWindow->activateWindow();
m_quakeWindow->focusCurrentPage();
return;
}
//隐藏终端
m_quakeWindow->hideQuakeWindow();
}
Expand Down

0 comments on commit 726dfa1

Please sign in to comment.