Skip to content

Commit

Permalink
detect empty results setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Garulf committed Feb 15, 2023
1 parent 13d5b9c commit 510dbaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def query(self, query):
# subtitle = str(game.install_path()) if game.install_path() is not None else None
query_search_precision = QUERY_SEARCH_PRECISION[self.query_search_precision]
match = string_matcher(query, item.name, query_search_precision=query_search_precision or DEFAULT_QUERY_SEARCH_PRECISION)
if match.matched:
if match.matched or (query == "" and self.settings.get('show_on_empty_search', False)):
icon = item.icon or str(item.path)
score = match.score
self.add_item(
Expand Down

0 comments on commit 510dbaf

Please sign in to comment.