mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-11-04 01:42:26 +03:00
Add back the "restore/foreground the existing window" code
This commit is contained in:
1 parent
35a476f209
commit
2be09a5db1
1 file changed
+4
@@ -136,6 +136,10 @@ if __name__ == '__main__': # noqa C901
|
||||
ShowWindow(window_handle, SW_RESTORE)
|
||||
ShellExecute(0, None, sys.argv[1], None, None, SW_RESTORE)
|
||||
|
||||
else:
|
||||
ShowWindowAsync(window_handle, SW_RESTORE)
|
||||
SetForegroundWindow(window_handle)
|
||||
|
||||
return True # Do not remove, else this function as a callback breaks
|
||||
|
||||
# This performs the edmc://auth check and forward
|
||||
|
||||
Reference in new issue
Block a user