Fix changing language breaking staff roll background

This commit is contained in:
Agent X 2024-05-11 18:26:17 -04:00
parent 96018588cd
commit 307d5e993a
2 changed files with 3 additions and 3 deletions

View file

@ -48,16 +48,18 @@ static void djui_panel_language_destroy(UNUSED struct DjuiBase* caller) {
snprintf(configLanguage, MAX_CONFIG_STRING, "%s", "");
}
djui_panel_shutdown();
if (gPanelLanguageOnStartup) {
djui_panel_shutdown();
gDjuiInMainMenu = true;
djui_panel_main_create(NULL);
} else if (gDjuiInMainMenu) {
djui_panel_shutdown();
gDjuiInMainMenu = true;
djui_panel_main_create(NULL);
djui_panel_options_create(NULL);
djui_panel_misc_create(NULL);
} else if (gDjuiPanelPauseCreated) {
djui_panel_shutdown();
djui_panel_pause_create(NULL);
djui_panel_options_create(NULL);
djui_panel_misc_create(NULL);

View file

@ -42,8 +42,6 @@ static void djui_panel_misc_djui_setting_change(UNUSED struct DjuiBase* caller)
djui_panel_options_create(NULL);
djui_panel_misc_create(NULL);
djui_panel_main_menu_create(NULL);
} else {
djui_panel_shutdown();
}
}