Moved the call to win_load_icon_set(), should fix the bug of no icon in the Settings dialog in the Settings-only mode, closes #1844.

This commit is contained in:
OBattler
2021-11-19 15:08:22 +01:00
parent 5d6dbc8f0d
commit d5086701c2

View File

@@ -1270,6 +1270,9 @@ ui_init(int nCmdShow)
tdconfig.pButtons = tdbuttons;
tdconfig.pfCallback = TaskDialogProcedure;
/* Load the desired iconset */
win_load_icon_set();
/* Start settings-only mode if requested. */
if (settings_only) {
if (! pc_init_modules()) {
@@ -1404,9 +1407,6 @@ ui_init(int nCmdShow)
ResetAllMenus();
media_menu_init();
/* Load the desired iconset */
win_load_icon_set();
/* Make the window visible on the screen. */
ShowWindow(hwnd, nCmdShow);