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,7 +1623,10 @@ class pluginclass(object):
for child in get_contents(menu.directory):
if isinstance(child, MateMenu.TreeDirectory):
name = child.get_name()
icon = child.get_icon().to_string()
if child.get_icon() is None:
icon = "applications-other"
else:
icon = child.get_icon().to_string()
newCategoryList.append({"name": name,
"icon": icon,
"tooltip": name,