From adfa52ae8ce7fca432e5ed22979ae8a71cff998c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Lafr=C3=A9choux?= Date: Wed, 16 Feb 2022 21:17:12 +0100 Subject: [PATCH] Remove _show_when_systray_available workaround --- src/qbirthday/statusicon.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/qbirthday/statusicon.py b/src/qbirthday/statusicon.py index d8edfb8..bf57138 100644 --- a/src/qbirthday/statusicon.py +++ b/src/qbirthday/statusicon.py @@ -56,18 +56,7 @@ def tray_icon_activated_cb(reason): self.activated.connect(tray_icon_activated_cb) - self._show_when_systray_available() - - def _show_when_systray_available(self): - """Show status icon when system tray is available - - If available, show icon, otherwise, set a timer to check back later. - This is a workaround for https://bugreports.qt.io/browse/QTBUG-61898 - """ - if self.isSystemTrayAvailable(): - self.show() - else: - QtCore.QTimer.singleShot(1000, self._show_when_systray_available) + self.show() def reload_set_icon(self): """Set icon according to birthday status"""