pass -restart arg
This commit is contained in:
parent
59b4d83153
commit
27f40a3406
2 changed files with 4 additions and 4 deletions
|
@ -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…
Reference in a new issue