theme: fix icon bug

Do not carry over previous alt_filename for icons that don't have one.
This commit is contained in:
Johan Malm 2023-12-06 21:55:31 +00:00 committed by Consolatis
parent c79b8ba8a7
commit 5bc58fc381

View file

@ -227,6 +227,7 @@ load_buttons(struct theme *theme)
/* If there were no png/svg buttons, use xbm */
snprintf(filename, sizeof(filename), "%s.xbm", b->name);
alt_filename[0] = '\0';
if (b->alt_name) {
snprintf(alt_filename, sizeof(alt_filename), "%s.xbm", b->alt_name);
}