From a3ce7b66687c70b847ce598eac1da0ec62f2d704 Mon Sep 17 00:00:00 2001 From: OBattler Date: Tue, 15 Feb 2022 23:03:00 +0100 Subject: [PATCH] Language is now set in Settings-only mode. --- src/win/win_ui.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/win/win_ui.c b/src/win/win_ui.c index 6f0301d09..ad2c23484 100644 --- a/src/win/win_ui.c +++ b/src/win/win_ui.c @@ -1171,6 +1171,7 @@ ui_init(int nCmdShow) int bRet; TASKDIALOGCONFIG tdconfig = {0}; TASKDIALOG_BUTTON tdbuttons[] = {{IDCANCEL, MAKEINTRESOURCE(IDS_2119)}}; + uint32_t helper_lang; /* Load DPI related Windows 10 APIs */ user32_handle = dynld_module("user32.dll", user32_imports); @@ -1204,6 +1205,12 @@ ui_init(int nCmdShow) return(6); } + + /* Load the desired language */ + helper_lang = lang_id; + lang_id = 0; + set_language(helper_lang); + win_settings_open(NULL); return(0); } @@ -1321,7 +1328,7 @@ ui_init(int nCmdShow) } /* Load the desired language */ - uint32_t helper_lang = lang_id; + helper_lang = lang_id; lang_id = 0; set_language(helper_lang);