summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-05-25 01:18:26 +0200
committerStanislaw Halik <sthalik@misaki.pl>2019-05-25 01:18:26 +0200
commit35fccdf288131ddcec5d13ffef0c0780ef4d2361 (patch)
tree745346555639774e5353153a1dd529b92b8fb389
parent2190b93cc3b83d643497258941d39f9b0f654199 (diff)
opentrack: fix wrong Qt::WindowState usage
-rw-r--r--opentrack/main-window.cpp3
1 files changed, 0 insertions, 3 deletions
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)
{