mirror of https://github.com/borgbase/vorta
Fix double call to on_user_click. By @olivierlemoal (#1031)
This commit is contained in:
parent
ea40d7b359
commit
7d2dbe001d
|
@ -33,8 +33,6 @@ class TrayMenu(QSystemTrayIcon):
|
|||
if reason in [QSystemTrayIcon.Trigger, QSystemTrayIcon.DoubleClick] and \
|
||||
os.environ.get('XDG_CURRENT_DESKTOP'):
|
||||
self.app.toggle_main_window_visibility()
|
||||
else:
|
||||
self.on_user_click()
|
||||
|
||||
def on_user_click(self):
|
||||
"""Build system tray menu based on current state."""
|
||||
|
|
Loading…
Reference in New Issue