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)