Skip to content

Commit

Permalink
- App icon loading for windows and linux based OS's fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Oshan96 committed Apr 15, 2020
1 parent b320304 commit 3badbfe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Binary file added anime_downloader/app.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion anime_downloader/gui/GUI.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
import queue
import json
import cloudscraper
Expand Down Expand Up @@ -164,7 +165,10 @@ def create_ui(self):
[sg.ProgressBar(100, key="progress", orientation="h", size=(45, 15))]
]

self.window = sg.Window("Monkey-DL v1.0.4", layout, icon="app.ico")
if sys.platform.lower() == "win32":
self.window = sg.Window("Monkey-DL v1.0.4", layout, icon="app.ico")
else:
self.window = sg.Window("Monkey-DL v1.0.4", layout, icon="app.png")

def check_messages(self, values):
global i, max_val
Expand Down

0 comments on commit 3badbfe

Please sign in to comment.