Browse Source

Check if ICON is None

doc-issue-template
MrS0m30n3 10 years ago
parent
commit
5894e46f03
1 changed files with 2 additions and 1 deletions
  1. 3
      youtube_dl_gui/YoutubeDLGUI.py

3
youtube_dl_gui/YoutubeDLGUI.py

@ -81,7 +81,8 @@ class MainFrame(wx.Frame):
self.init_gui()
# set app icon
self.SetIcon(wx.Icon(ICON, wx.BITMAP_TYPE_PNG))
if ICON is not None:
self.SetIcon(wx.Icon(ICON, wx.BITMAP_TYPE_PNG))
# set publisher for update thread
Publisher.subscribe(self.update_handler, "update")

Loading…
Cancel
Save