Don't confirm settings save when ran with -S

Closes #1150
This commit is contained in:
David Hrdlička
2020-12-06 08:21:16 +01:00
committed by GitHub
parent 57ff5a0441
commit dd3a41b87f

View File

@@ -5007,7 +5007,7 @@ win_settings_confirm(HWND hdlg)
SendMessage(hwndChildDialog, WM_SAVESETTINGS, 0, 0);
if (win_settings_changed()) {
if (confirm_save)
if (confirm_save && !settings_only)
i = settings_msgbox_ex(MBX_QUESTION_OK | MBX_WARNING | MBX_DONTASK, (wchar_t *) IDS_2121, (wchar_t *) IDS_2122, (wchar_t *) IDS_2123, NULL, NULL);
else
i = 0;