From c098d7df6c025e8107198b91d1bf1e8ced6983a9 Mon Sep 17 00:00:00 2001 From: Deltaion Lee <32529306+MCMi460@users.noreply.github.com> Date: Sat, 1 Jul 2023 15:35:28 -0500 Subject: [PATCH] Prevent unwanted icon change on MacOS --- client/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/app.py b/client/app.py index 542de91..927620c 100644 --- a/client/app.py +++ b/client/app.py @@ -758,7 +758,8 @@ def windowsLightMode(): # https://stackoverflow.com/a/65349866 if not bool(SystemTrayApp.windowsLightMode()): iconFile = 'taskBarLight.png' tray = SystemTrayApp(QIcon(getPath(iconFile)), MainWindow) - app.setWindowIcon(QIcon(getPath("icon.png"))) + if platform.system() != 'Darwin': + app.setWindowIcon(QIcon(getPath("icon.png"))) window.setupUi(MainWindow) window.selfService()