File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -105,14 +105,12 @@ Not a developer? You can still help through the following methods:
105105 - < https://bugreports.qt.io/browse/QTBUG-114635 >
106106 - < https://bugreports.qt.io/browse/PYSIDE-2541 >
107107 - < https://bugreports.qt.io/browse/PYSIDE-2542 >
108- - < https://github.com/pyinstaller/pyinstaller/issues/9012 >
109108 - < https://github.com/opencv/opencv/issues?q=is%3Aissue+is%3Aopen+involves%3AAvasam+sort%3Areactions-%2B1-asc+ >
110109 - < https://github.com/mypyc/mypyc/issues?q=sort%3Areactions-%2B1%20is%3Aissue%20is%3Aopen%20%20involves%3AAvasam%20 >
111110 - < https://github.com/uiri/toml/issues/270 >
112111 - < https://github.com/microsoft/vscode/issues/40239 >
113112 - < https://github.com/microsoft/vscode/issues/168411 >
114113 - < https://github.com/ronaldoussoren/altgraph/pull/25 >
115- - < https://github.com/python/mypy/issues/6700 >
116114 - < https://github.com/python/mypy/issues/15146 >
117115 - < https://github.com/python/mypy/issues/4409 >
118116 - < https://github.com/python/mypy/issues/10149 >
Original file line number Diff line number Diff line change 1111if sys .platform == "win32" :
1212 import ctypes
1313
14+ from win32comext .shell import shell as shell32
15+
1416 def do_nothing (* _ ): ...
1517
1618 # pyautogui._pyautogui_win.py
@@ -86,12 +88,6 @@ def do_nothing(*_): ...
8688
8789CHECK_FPS_ITERATIONS = 10
8890
89- if sys .platform == "win32" :
90- from win32comext .shell import shell as shell32
91-
92- myappid = f"Toufool.AutoSplit.v{ AUTOSPLIT_VERSION } "
93- shell32 .SetCurrentProcessExplicitAppUserModelID (myappid )
94-
9591
9692class AutoSplit (QMainWindow , design .Ui_MainWindow ):
9793 # Parse command line args
@@ -1075,6 +1071,10 @@ def main():
10751071 # Call to QApplication outside the try-except so we can show error messages
10761072 app = QApplication (sys .argv )
10771073 try :
1074+ if sys .platform == "win32" :
1075+ myappid = f"Toufool.AutoSplit.v{ AUTOSPLIT_VERSION } "
1076+ shell32 .SetCurrentProcessExplicitAppUserModelID (myappid )
1077+
10781078 app .setWindowIcon (QtGui .QIcon (":/resources/icon.ico" ))
10791079
10801080 if is_already_open ():
You can’t perform that action at this time.
0 commit comments