Language is now set in Settings-only mode.
This commit is contained in:
@@ -1171,6 +1171,7 @@ ui_init(int nCmdShow)
|
|||||||
int bRet;
|
int bRet;
|
||||||
TASKDIALOGCONFIG tdconfig = {0};
|
TASKDIALOGCONFIG tdconfig = {0};
|
||||||
TASKDIALOG_BUTTON tdbuttons[] = {{IDCANCEL, MAKEINTRESOURCE(IDS_2119)}};
|
TASKDIALOG_BUTTON tdbuttons[] = {{IDCANCEL, MAKEINTRESOURCE(IDS_2119)}};
|
||||||
|
uint32_t helper_lang;
|
||||||
|
|
||||||
/* Load DPI related Windows 10 APIs */
|
/* Load DPI related Windows 10 APIs */
|
||||||
user32_handle = dynld_module("user32.dll", user32_imports);
|
user32_handle = dynld_module("user32.dll", user32_imports);
|
||||||
@@ -1204,6 +1205,12 @@ ui_init(int nCmdShow)
|
|||||||
return(6);
|
return(6);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Load the desired language */
|
||||||
|
helper_lang = lang_id;
|
||||||
|
lang_id = 0;
|
||||||
|
set_language(helper_lang);
|
||||||
|
|
||||||
win_settings_open(NULL);
|
win_settings_open(NULL);
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
@@ -1321,7 +1328,7 @@ ui_init(int nCmdShow)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Load the desired language */
|
/* Load the desired language */
|
||||||
uint32_t helper_lang = lang_id;
|
helper_lang = lang_id;
|
||||||
lang_id = 0;
|
lang_id = 0;
|
||||||
set_language(helper_lang);
|
set_language(helper_lang);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user