Skip to content

Commit 517e062

Browse files
committed
Only use the icon if on windows
1 parent cdc0683 commit 517e062

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

gui/font_check.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ def __init__(self):
1212
self.cfg = Config()
1313
self.root = ttk.tk.Tk()
1414
self.root.title("Ghost")
15-
self.root.iconbitmap(resource_path("data/icon.ico"))
15+
if os.name == "nt":
16+
self.root.iconbitmap(resource_path("data/icon.ico"))
1617

1718
self.root.style = ttk.Style()
1819
# self.root.style.theme_use("darkly")

gui/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ def __init__(self, bot_controller):
2929
self.root = ttk.tk.Tk()
3030
self.root.title("Ghost")
3131
# self.root.resizable(False, False)
32-
self.root.iconbitmap(resource_path("data/icon.ico"))
32+
if os.name == "nt":
33+
self.root.iconbitmap(resource_path("data/icon.ico"))
3334
self.root.geometry(f"{self.size[0]}x{self.size[1]}")
3435
self.root.minsize(self.size[0], self.size[1])
3536
self.root.protocol("WM_DELETE_WINDOW", self.quit)

0 commit comments

Comments
 (0)