From a6873f556b6efbe58a0e1e41b4afa2223ad8c6aa Mon Sep 17 00:00:00 2001 From: Kevin Ottens Date: Tue, 16 Jun 2020 18:32:53 +0200 Subject: [PATCH] Also show the window on right click Note this won't work on all platforms. KDE Plasma and GNOME Shell (with systray extension) assume that right click is necessarily for a context menu exposed via D-Bus, there's not nice way to make the right click popup the main dialog on those platforms. Signed-off-by: Kevin Ottens --- src/gui/owncloudgui.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gui/owncloudgui.cpp b/src/gui/owncloudgui.cpp index 83af6a9bd..6c7971b2b 100644 --- a/src/gui/owncloudgui.cpp +++ b/src/gui/owncloudgui.cpp @@ -156,9 +156,7 @@ void ownCloudGui::slotOpenSettingsDialog() void ownCloudGui::slotTrayClicked(QSystemTrayIcon::ActivationReason reason) { - - // Left click - if (reason == QSystemTrayIcon::Trigger) { + if (reason == QSystemTrayIcon::Trigger || reason == QSystemTrayIcon::Context) { if (OwncloudSetupWizard::bringWizardToFrontIfVisible()) { // brought wizard to front } else if (_shareDialogs.size() > 0) {