src/theme.c: fix loading of alt_name hover icon

Fixes #1395
This commit is contained in:
Consolatis 2024-01-02 13:45:58 +01:00 committed by Johan Malm
parent d86c7aad91
commit 6cf19d1cdb

View file

@ -256,7 +256,7 @@ load_buttons(struct theme *theme)
* For example max_hover_toggled instead of max_toggled_hover
*/
if (b->alt_name) {
snprintf(filename, sizeof(filename), "%s.xbm", b->name);
snprintf(filename, sizeof(filename), "%s.xbm", b->alt_name);
} else {
filename[0] = '\0';
}