diff --git a/ui.py b/ui.py index bd5ad18..b378f79 100644 --- a/ui.py +++ b/ui.py @@ -2,6 +2,7 @@ import ctypes import json import os +import sys class Ui_MainWindow(object): def setupUi(self, MainWindow): @@ -10,7 +11,8 @@ def setupUi(self, MainWindow): MainWindow.setMinimumSize(QtCore.QSize(600, 400)) MainWindow.setMaximumSize(QtCore.QSize(600, 400)) MainWindow.setWindowIcon(QtGui.QIcon("logo.png")) - ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID("Chainsaw Human Typing") + if sys.platform == "win32": + ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID("Chainsaw Human Typing") self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget")