From 48334a75aa416fd56ca1c5c36ce82ab9ea39a37a Mon Sep 17 00:00:00 2001 From: reionwong Date: Thu, 24 Jun 2021 16:27:04 +0800 Subject: [PATCH] Fix frequently switching visibility --- src/mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 1725793..c646e71 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -250,6 +250,8 @@ void MainWindow::onVisibilityChanged() { // Always show if (m_settings->visibility() == DockSettings::AlwaysShow) { + m_hideTimer->stop(); + setGeometry(windowRect()); setVisible(true); updateViewStruts();