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]:
|
||||||
keys = option.keys()
|
option = self.flat_menu_data[key]
|
||||||
if "comment" in keys and len(option["comment"]) > 0 :
|
keys = option.keys()
|
||||||
desktop_objects.append( f"{option['title']} || {option['comment']}" )
|
if "comment" in keys and len(option["comment"]) > 0:
|
||||||
else:
|
if query.lower() in option["comment"].lower():
|
||||||
desktop_objects.append( f"{option['title']} || {option['fileName'].replace('.desktop', '')}" )
|
desktop_objects.append( f"{key} || {option['comment']}" )
|
||||||
|
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