Fix backslashes on failed to load lang folder panel

This commit is contained in:
Agent X 2023-12-16 15:56:24 -05:00
parent 70c10e6526
commit 48e58ec702

View file

@ -91,6 +91,7 @@ void djui_panel_language_create(struct DjuiBase* caller) {
LOG_ERROR("Could not open directory '%s'", lpath);
char buffer[512] = "";
sys_swap_backslashes(lpath);
snprintf(buffer, 512, "\\#ffa0a0\\Failed to load language folder:\n\\#dcdcdc\\%s", lpath);
struct DjuiText* text = djui_text_create(body, buffer);
djui_text_set_alignment(text, DJUI_HALIGN_CENTER, DJUI_VALIGN_CENTER);