mirror of
https://github.com/borgbase/vorta
synced 2025-01-03 05:36:19 +00:00
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
1 changed files with 4 additions and 1 deletions
|
@ -36,8 +36,11 @@ def __init__(self, parent=None):
|
|||
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)
|
||||
|
|
Loading…
Reference in a new issue