diff --git a/PySimpleGUI.py b/PySimpleGUI.py index d372c222..d58c5d86 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -3412,7 +3412,7 @@ class Window: self.Font = font if font else DEFAULT_FONT self.RadioDict = {} self.BorderDepth = border_depth - self.WindowIcon = icon if icon is not None else Window.user_defined_icon + self.WindowIcon = self.WindowIcon = Window.user_defined_icon if Window.user_defined_icon is not None else icon if icon is not None else DEFAULT_WINDOW_ICON self.AutoClose = auto_close self.NonBlocking = False self.TKroot = None