trying to fix group addition

This commit is contained in:
emdee 2022-10-08 17:59:45 +00:00
parent fb520357e9
commit 633b8f9561
14 changed files with 271 additions and 135 deletions

View file

@ -10,7 +10,7 @@ def tray_notification(title, text, tray, window):
:param tray: ref to tray icon
:param window: main window
"""
if QtWidgets.QSystemTrayIcon.isSystemTrayAvailable():
if tray and QtWidgets.QSystemTrayIcon.isSystemTrayAvailable():
if len(text) > 30:
text = text[:27] + '...'
tray.showMessage(title, text, QtWidgets.QSystemTrayIcon.NoIcon, 3000)