Skip to content

Commit 212d31e

Browse files
committed
main.c: fix bug where "Other" category shows no icon.
1 parent f1aa43d commit 212d31e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

main.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,12 @@ print_menu(GList *dirs, GList *apps)
227227
if (!submenu->len) {
228228
continue;
229229
}
230-
printf(" <menu id=\"%s\" label=\"%s\">\n",
231-
dir->name, dir->name_localized ? : dir->name);
230+
printf(" <menu id=\"%s\" label=\"%s\"", dir->name, dir->name_localized ? : dir->name);
231+
if (show_icons && dir->icon) {
232+
printf(" icon=\"%s\"", dir->icon);
233+
}
234+
printf(">\n");
235+
232236
printf("%s", submenu->str);
233237
printf(" </menu> <!-- %s -->\n", dir->name);
234238
}

0 commit comments

Comments
 (0)