trying to fix group addition
This commit is contained in:
parent
fb520357e9
commit
633b8f9561
14 changed files with 271 additions and 135 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue