From b448659e3f6ba70e637e03f722f52ea730693e39 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sat, 24 Nov 2018 04:04:28 +0100 Subject: [PATCH] tray menu: document bug that causes menu state to not refresh, see #48 single LMB click fails to refresh, double LMB and MMB works. --- src/vorta/tray_menu.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/vorta/tray_menu.py b/src/vorta/tray_menu.py index 66a22eaf..bc2bb3ce 100644 --- a/src/vorta/tray_menu.py +++ b/src/vorta/tray_menu.py @@ -36,8 +36,11 @@ class TrayMenu(QSystemTrayIcon): self.setVisible(True) self.show() - def on_user_click(self): + def on_user_click(self, reason=0): """Adjust labels to reflect current status.""" + # BUG on ubuntu 18.04 (standard edition with gnome): + # a single LMB click on the tray icon does not fire the "activated" signal (documented reason 3). + # working: double LMB click (reason reported 3, should be 2), MMB click (reason 4) if BorgThread.is_running(): self.status.setText('Backup in Progress') self.profile_menu.setEnabled(False)