tray menu: document bug that causes menu state to not refresh, see #48

single LMB click fails to refresh, double LMB and MMB works.
This commit is contained in:
Thomas Waldmann 2018-11-24 04:04:28 +01:00
parent 162f6bf7a5
commit b448659e3f
1 changed files with 4 additions and 1 deletions

View File

@ -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)