mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-10-08 14:54:36 +00:00
Error Handling
This commit is contained in:
parent
5d99e56b06
commit
e81b05b279
1 changed files with 14 additions and 9 deletions
|
|
@ -598,15 +598,20 @@ class PluginManagerWindow(ba.Window, PluginManager):
|
|||
self.categories["All"] = CategoryAll(plugins=all_plugins)
|
||||
|
||||
async def plugin_index(self):
|
||||
try:
|
||||
index = await super().get_index()
|
||||
await asyncio.gather(
|
||||
self.draw_refresh_icon(),
|
||||
self.draw_settings_icon(),
|
||||
self.setup_plugin_categories(index),
|
||||
)
|
||||
self._loading_text.delete()
|
||||
await self.select_category("All")
|
||||
await self.draw_search_bar()
|
||||
self._loading_text.delete()
|
||||
except Exception:
|
||||
ba.textwidget(edit=self._loading_text,
|
||||
text='Error')
|
||||
print("Plugin Manager could not load due to a few Technical Issues.")
|
||||
|
||||
async def draw_category_selection_button(self, label=None):
|
||||
# v = (self._height - 75) if _uiscale is ba.UIScale.SMALL else (self._height - 105)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue