From 0c62d8454d005e975975880ca2aeb156bbe07668 Mon Sep 17 00:00:00 2001 From: Martin Wallin Date: Sun, 24 Sep 2017 21:36:07 +0200 Subject: [PATCH] Toggle main window with by middle mouse clicking tray icon --- src/gui/MainWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index 8f6846f4b..ab340e1f3 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -855,7 +855,7 @@ void MainWindow::applySettingsChanges() void MainWindow::trayIconTriggered(QSystemTrayIcon::ActivationReason reason) { - if (reason == QSystemTrayIcon::Trigger) { + if (reason == QSystemTrayIcon::Trigger || reason == QSystemTrayIcon::MiddleClick) { toggleWindow(); } }