Add an option to disable the settings save dialog

This commit is contained in:
David Hrdlička
2020-11-21 19:17:06 +01:00
parent f18a55e30f
commit 84c573490c
4 changed files with 17 additions and 3 deletions

View File

@@ -531,7 +531,13 @@ settings_msgbox_reset()
h = hwndMain;
hwndMain = hwndParentDialog;
i = ui_msgbox_ex(MBX_QUESTION_OK | MBX_WARNING, (wchar_t *) IDS_2121, (wchar_t *) IDS_2122, (wchar_t *) IDS_2123, NULL, NULL);
if (confirm_save)
i = ui_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;
if (i == 10)
confirm_save = 0;
hwndMain = h;