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 <kevin.ottens@nextcloud.com>
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) {