Skip to content

Commit 66f154d

Browse files
committed
only add dock image to non win32 runs
1 parent 7c9e3c4 commit 66f154d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

gooey/gui/containers/application.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,12 @@ def layoutComponent(self):
192192
# Program Icon (Windows)
193193
icon = wx.Icon(self.buildSpec['images']['programIcon'], wx.BITMAP_TYPE_PNG)
194194
self.SetIcon(icon)
195-
# OSX needs to have its taskbar icon explicitly set
196-
# bizarrely, wx requires the TaskBarIcon to be attached to the Frame
197-
# as instance data (self.). Otherwise, it will not render correctly.
198-
self.taskbarIcon = TaskBarIcon(iconType=wx.adv.TBI_DOCK)
199-
self.taskbarIcon.SetIcon(icon)
195+
if sys.platform != 'win32':
196+
# OSX needs to have its taskbar icon explicitly set
197+
# bizarrely, wx requires the TaskBarIcon to be attached to the Frame
198+
# as instance data (self.). Otherwise, it will not render correctly.
199+
self.taskbarIcon = TaskBarIcon(iconType=wx.adv.TBI_DOCK)
200+
self.taskbarIcon.SetIcon(icon)
200201

201202

202203

0 commit comments

Comments
 (0)