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:
MikeTheWatchGuy 2019-07-24 14:34:56 -04:00 committed by GitHub
commit 6267f25354
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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)