From fad0d6968299117403e7b047fce33098bfbfbfc5 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Wed, 24 Jul 2019 14:34:34 -0400 Subject: [PATCH] Added default icon to System Tray if none is set by user. --- PySimpleGUIQt/PySimpleGUIQt.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PySimpleGUIQt/PySimpleGUIQt.py b/PySimpleGUIQt/PySimpleGUIQt.py index 5c4f4d84..418d5d4b 100644 --- a/PySimpleGUIQt/PySimpleGUIQt.py +++ b/PySimpleGUIQt/PySimpleGUIQt.py @@ -2937,6 +2937,8 @@ class SystemTray: self.App = Window.QTApplication self.Widget = self.QWidget = QWidget() # type: QWidget + if filename is None and data is None and data_base64 is None: + data_base64 = DEFAULT_BASE64_ICON qicon = None if filename is not None: qicon = QIcon(filename)