Fix broken menus
This commit is contained in:
parent
9837af7a0c
commit
a7da5d9ed8
|
@ -155,12 +155,14 @@ class Controller(ProcessorMixin, Menu, Controller_Data):
|
||||||
elif "Favorites" in group:
|
elif "Favorites" in group:
|
||||||
desktop_objects = self.favorites
|
desktop_objects = self.favorites
|
||||||
else:
|
else:
|
||||||
for option in self.menu_data[group]:
|
for key in self.menu_data[group]:
|
||||||
|
option = self.flat_menu_data[key]
|
||||||
keys = option.keys()
|
keys = option.keys()
|
||||||
if "comment" in keys and len(option["comment"]) > 0:
|
if "comment" in keys and len(option["comment"]) > 0:
|
||||||
desktop_objects.append( f"{option['title']} || {option['comment']}" )
|
if query.lower() in option["comment"].lower():
|
||||||
else:
|
desktop_objects.append( f"{key} || {option['comment']}" )
|
||||||
desktop_objects.append( f"{option['title']} || {option['fileName'].replace('.desktop', '')}" )
|
elif query.lower() in key.lower() or query.lower() in option["fileName"].lower():
|
||||||
|
desktop_objects.append( f"{key} || {option['fileName'].replace('.desktop', '')}" )
|
||||||
|
|
||||||
return desktop_objects
|
return desktop_objects
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue