summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--gui/main-window.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/gui/main-window.cpp b/gui/main-window.cpp
index 21e5a3b4..e2a67e80 100644
--- a/gui/main-window.cpp
+++ b/gui/main-window.cpp
@@ -575,7 +575,16 @@ void MainWindow::ensure_tray()
void MainWindow::toggle_restore_from_tray(QSystemTrayIcon::ActivationReason e)
{
- if (e != QSystemTrayIcon::DoubleClick)
+ if (progn(switch (e)
+ {
+ // if we enable double click also then it causes
+ // toggle back to the original state
+ //case QSystemTrayIcon::DoubleClick:
+ case QSystemTrayIcon::Trigger: // single click
+ return false;
+ default:
+ return true;
+ }))
return;
ensure_tray();