From: Kevin Ottens Date: Tue, 16 Jun 2020 16:32:53 +0000 (+0200) Subject: Also show the window on right click X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~222^2^2~148^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a6873f556b6efbe58a0e1e41b4afa2223ad8c6aa;p=nextcloud-desktop.git 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 --- 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) {