mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-07 02:43:22 +03:00
Add back the "restore/foreground the existing window" code
This commit is contained in:
parent
35a476f209
commit
2be09a5db1
@ -136,6 +136,10 @@ if __name__ == '__main__': # noqa C901
|
|||||||
ShowWindow(window_handle, SW_RESTORE)
|
ShowWindow(window_handle, SW_RESTORE)
|
||||||
ShellExecute(0, None, sys.argv[1], None, None, 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
|
return True # Do not remove, else this function as a callback breaks
|
||||||
|
|
||||||
# This performs the edmc://auth check and forward
|
# This performs the edmc://auth check and forward
|
||||||
|
Loading…
x
Reference in New Issue
Block a user