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:
parent
59b4d83153
commit
27f40a3406
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user