From 35fccdf288131ddcec5d13ffef0c0780ef4d2361 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 25 May 2019 01:18:26 +0200 Subject: opentrack: fix wrong Qt::WindowState usage --- opentrack/main-window.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'opentrack') diff --git a/opentrack/main-window.cpp b/opentrack/main-window.cpp index 006d78ed..e7134e08 100644 --- a/opentrack/main-window.cpp +++ b/opentrack/main-window.cpp @@ -743,9 +743,6 @@ void main_window::toggle_restore_from_tray(QSystemTrayIcon::ActivationReason e) menu_action_show.setText(!isHidden() ? tr("Show the Octopus") : tr("Hide the Octopus")); setVisible(is_minimized); - setHidden(!is_minimized); - - setWindowState(is_minimized ? windowState() & ~Qt::WindowMinimized : Qt::WindowNoState); if (is_minimized) { -- cgit v1.2.3