mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2026-08-15 13:03:08 +00:00
[ci] auto-format
This commit is contained in:
parent
0b499f92fe
commit
09b6832007
1 changed files with 2 additions and 2 deletions
|
|
@ -1537,7 +1537,7 @@ class PluginManagerWindow(ba.Window):
|
||||||
async def draw_plugin_names(self, category, search_term=""):
|
async def draw_plugin_names(self, category, search_term=""):
|
||||||
# Re-draw plugin list UI if either search term or category was switched.
|
# Re-draw plugin list UI if either search term or category was switched.
|
||||||
to_draw_plugin_names = (search_term, category) != (self._last_filter_text,
|
to_draw_plugin_names = (search_term, category) != (self._last_filter_text,
|
||||||
self.selected_category)
|
self.selected_category)
|
||||||
if not to_draw_plugin_names:
|
if not to_draw_plugin_names:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
@ -1547,7 +1547,7 @@ class PluginManagerWindow(ba.Window):
|
||||||
raise CategoryDoesNotExistError(f"{category} does not exist.")
|
raise CategoryDoesNotExistError(f"{category} does not exist.")
|
||||||
|
|
||||||
if search_term:
|
if search_term:
|
||||||
search_term_filterer = lambda plugin: self.search_term_filterer(plugin, search_term)
|
def search_term_filterer(plugin): return self.search_term_filterer(plugin, search_term)
|
||||||
plugins = filter(search_term_filterer, category_plugins)
|
plugins = filter(search_term_filterer, category_plugins)
|
||||||
else:
|
else:
|
||||||
plugins = category_plugins
|
plugins = category_plugins
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue