Applications: Fix empty apps when a category has no icon

This commit is contained in:
Clement Lefebvre 2019-09-26 09:57:10 +01:00
parent f1c321d255
commit 3d38765734

View File

@ -1623,6 +1623,9 @@ class pluginclass(object):
for child in get_contents(menu.directory): for child in get_contents(menu.directory):
if isinstance(child, MateMenu.TreeDirectory): if isinstance(child, MateMenu.TreeDirectory):
name = child.get_name() name = child.get_name()
if child.get_icon() is None:
icon = "applications-other"
else:
icon = child.get_icon().to_string() icon = child.get_icon().to_string()
newCategoryList.append({"name": name, newCategoryList.append({"name": name,
"icon": icon, "icon": icon,