Merge pull request #1734 from PySimpleGUI/Dev-latest
Added default icon to System Tray if none is set by user.
This commit is contained in:
commit
6267f25354
|
@ -2937,6 +2937,8 @@ class SystemTray:
|
||||||
self.App = Window.QTApplication
|
self.App = Window.QTApplication
|
||||||
self.Widget = self.QWidget = QWidget() # type: QWidget
|
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
|
qicon = None
|
||||||
if filename is not None:
|
if filename is not None:
|
||||||
qicon = QIcon(filename)
|
qicon = QIcon(filename)
|
||||||
|
|
Loading…
Reference in New Issue