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
1 changed files with 0 additions and 2 deletions

View File

@ -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."""