We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebb8240 commit a6e96b4Copy full SHA for a6e96b4
main.c
@@ -91,7 +91,7 @@ print_app_to_buffer(struct app *app, GString *submenu)
91
92
g_string_append_printf(submenu, " <item label=\"%s\"",
93
app->name_localized ? app->name_localized : app->name);
94
- if (show_icons) {
+ if (show_icons && app->icon) {
95
g_string_append_printf(submenu, " icon=\"%s\"", app->icon);
96
}
97
g_string_append_printf(submenu, ">\n");
@@ -207,7 +207,7 @@ print_menu(GList *dirs, GList *apps)
207
208
209
printf(" <menu id=\"%s\" label=\"%s\"", dir->name, dir->name_localized ? : dir->name);
210
+ if (show_icons && dir->icon) {
211
printf(" icon=\"%s\"", dir->icon);
212
213
printf(">\n");
0 commit comments