Add support for icon set switching to the toolbar

This commit is contained in:
David Hrdlička
2022-01-12 23:40:40 +01:00
parent 8d0c1dec81
commit e5bf6ea015
3 changed files with 43 additions and 20 deletions

View File

@@ -120,9 +120,11 @@ void win_load_icon_set()
win_clear_icon_set();
win_system_icon_set();
if (strlen(icon_set) == 0)
if (strlen(icon_set) == 0) {
ToolBarLoadIcons();
return;
}
char path_root[2048] = {0}, temp[2048] = {0};
wchar_t wtemp[2048] = {0};
@@ -150,4 +152,6 @@ void win_load_icon_set()
uint32_t curr_lang = lang_id;
lang_id = 0;
set_language(curr_lang);
ToolBarLoadIcons();
}