mirror of https://github.com/borgbase/vorta
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:
parent
162f6bf7a5
commit
b448659e3f
|
@ -36,8 +36,11 @@ class TrayMenu(QSystemTrayIcon):
|
||||||
self.setVisible(True)
|
self.setVisible(True)
|
||||||
self.show()
|
self.show()
|
||||||
|
|
||||||
def on_user_click(self):
|
def on_user_click(self, reason=0):
|
||||||
"""Adjust labels to reflect current status."""
|
"""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():
|
if BorgThread.is_running():
|
||||||
self.status.setText('Backup in Progress')
|
self.status.setText('Backup in Progress')
|
||||||
self.profile_menu.setEnabled(False)
|
self.profile_menu.setEnabled(False)
|
||||||
|
|
Loading…
Reference in New Issue