mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2026-08-15 13:03:08 +00:00
Make sure filter widget exists when looking for filter text
This commit is contained in:
parent
1a764046c1
commit
8ce09ea0a3
1 changed files with 3 additions and 3 deletions
|
|
@ -1732,9 +1732,9 @@ class PluginManagerWindow(bui.Window):
|
|||
async def process_search_term(self):
|
||||
while True:
|
||||
await asyncio.sleep(0.2)
|
||||
try:
|
||||
filter_text = bui.textwidget(query=self._filter_widget)
|
||||
except RuntimeError:
|
||||
if self._filter_widget:
|
||||
filter_text = bui.textwidget(parent=self._root_widget, query=self._filter_widget)
|
||||
else:
|
||||
# Search filter widget got destroyed. No point checking for filter text anymore.
|
||||
return
|
||||
if self.selected_category is None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue