Applications: Fix empty apps when a category has no icon
This commit is contained in:
parent
f1c321d255
commit
3d38765734
@ -1623,6 +1623,9 @@ class pluginclass(object):
|
||||
for child in get_contents(menu.directory):
|
||||
if isinstance(child, MateMenu.TreeDirectory):
|
||||
name = child.get_name()
|
||||
if child.get_icon() is None:
|
||||
icon = "applications-other"
|
||||
else:
|
||||
icon = child.get_icon().to_string()
|
||||
newCategoryList.append({"name": name,
|
||||
"icon": icon,
|
||||
|
Loading…
Reference in New Issue
Block a user