Skip to content

Commit

Permalink
make it work on other OSes
Browse files Browse the repository at this point in the history
  • Loading branch information
LyubomirT committed Jul 26, 2024
1 parent 632b803 commit 61e73c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import ctypes
import json
import os
import sys

class Ui_MainWindow(object):
def setupUi(self, MainWindow):
Expand All @@ -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")

Expand Down

0 comments on commit 61e73c6

Please sign in to comment.