Applications: Fix empty apps when a category has no icon
This commit is contained in:
parent
f1c321d255
commit
3d38765734
@ -1623,7 +1623,10 @@ 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()
|
||||||
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,
|
newCategoryList.append({"name": name,
|
||||||
"icon": icon,
|
"icon": icon,
|
||||||
"tooltip": name,
|
"tooltip": name,
|
||||||
|
Loading…
Reference in New Issue
Block a user