src/menu: add global config for menu.showIcons

This commit is contained in:
Consolatis 2025-01-27 17:19:20 +01:00 committed by Johan Malm
parent 1fa4070025
commit ed4553fc7e
5 changed files with 12 additions and 2 deletions

View file

@ -459,8 +459,7 @@ fill_item(char *nodename, char *content)
"nodename: '%s' content: '%s'", nodename, content);
} else if (!strcmp(nodename, "icon")) {
#if HAVE_LIBSFDO
// TODO: add some rc.menu_icons bool
if (true && !string_null_or_empty(content)) {
if (rc.menu_show_icons && !string_null_or_empty(content)) {
xstrdup_replace(current_item->icon_name, content);
current_menu->has_icons = true;
}