Skip to content

Commit

Permalink
Refactor code to set explicit app user model ID on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
LyubomirT committed Jul 26, 2024
1 parent 61e73c6 commit 633dedb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def setupUi(self, MainWindow):
MainWindow.setMinimumSize(QtCore.QSize(600, 400))
MainWindow.setMaximumSize(QtCore.QSize(600, 400))
MainWindow.setWindowIcon(QtGui.QIcon("logo.png"))
if sys.platform == "win32":
if sys.platform == "win32" and hasattr(ctypes.windll, "shell32"):
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID("Chainsaw Human Typing")
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
Expand Down

0 comments on commit 633dedb

Please sign in to comment.