Fix frequently switching visibility

This commit is contained in:
reionwong 2021-06-24 16:27:04 +08:00
parent 9458b8fb55
commit 48334a75aa

View file

@ -250,6 +250,8 @@ void MainWindow::onVisibilityChanged()
{ {
// Always show // Always show
if (m_settings->visibility() == DockSettings::AlwaysShow) { if (m_settings->visibility() == DockSettings::AlwaysShow) {
m_hideTimer->stop();
setGeometry(windowRect()); setGeometry(windowRect());
setVisible(true); setVisible(true);
updateViewStruts(); updateViewStruts();