1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-14 22:03:27 +01:00

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

@ -48,7 +48,7 @@ void __fastcall TConfigForm::LanguageImgClick(TObject *Sender)
NULL,
L"open",
Application->ExeName.w_str(),
NULL,
L"-restart",
NULL,
SW_SHOWNORMAL);
@ -69,7 +69,7 @@ void __fastcall TConfigForm::ThemePnlClick(TObject *Sender)
NULL,
L"open",
Application->ExeName.w_str(),
NULL,
L"-restart",
NULL,
SW_SHOWNORMAL);
@ -92,7 +92,7 @@ void __fastcall TConfigForm::RestoreDefaultsBtnClick(TObject *Sender)
NULL,
L"open",
Application->ExeName.w_str(),
NULL,
L"-restart",
NULL,
SW_SHOWNORMAL);

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);