mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-23 14:42:29 +01:00
wmmenugen: Sort menu entries with no category into 'Other'.
This commit is contained in:
committed by
Carlos R. Mafra
parent
adc1687f98
commit
ff865c31f0
@@ -178,6 +178,9 @@ void parse_xdg(const char *file, cb_add_menu_entry *addWMMenuEntryCallback)
|
|||||||
getMenuHierarchyFor(&xdg->Category);
|
getMenuHierarchyFor(&xdg->Category);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (xdg->Category == NULL)
|
||||||
|
xdg->Category = wstrdup(_("Other"));
|
||||||
|
|
||||||
wfree(key);
|
wfree(key);
|
||||||
key = NULL;
|
key = NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user