1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2024-12-22 15:57:34 +00:00

Fix double call to on_user_click. By @olivierlemoal (#1031)

This commit is contained in:
Olivier Le Moal 2021-08-02 13:02:37 +02:00 committed by GitHub
parent ea40d7b359
commit 7d2dbe001d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,8 +33,6 @@ def on_activation(self, reason):
if reason in [QSystemTrayIcon.Trigger, QSystemTrayIcon.DoubleClick] and \ if reason in [QSystemTrayIcon.Trigger, QSystemTrayIcon.DoubleClick] and \
os.environ.get('XDG_CURRENT_DESKTOP'): os.environ.get('XDG_CURRENT_DESKTOP'):
self.app.toggle_main_window_visibility() self.app.toggle_main_window_visibility()
else:
self.on_user_click()
def on_user_click(self): def on_user_click(self):
"""Build system tray menu based on current state.""" """Build system tray menu based on current state."""