pass -restart arg

This commit is contained in:
FunkyFr3sh 2023-08-15 16:16:49 +02:00
parent 59b4d83153
commit 27f40a3406
2 changed files with 4 additions and 4 deletions

View file

@ -21,7 +21,7 @@ int WINAPI _tWinMain(HINSTANCE, HINSTANCE, LPTSTR, int)
FindWindow(
THashSHA1::GetHashString(Application->ExeName).w_str(), NULL);
if (hwnd) {
if (hwnd && ParamStr(1) != L"-restart") {
if (IsIconic(hwnd)) {
ShowWindow(hwnd, SW_RESTORE);