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)
|
self.categories["All"] = CategoryAll(plugins=all_plugins)
|
||||||
|
|
||||||
async def plugin_index(self):
|
async def plugin_index(self):
|
||||||
index = await super().get_index()
|
try:
|
||||||
await asyncio.gather(
|
index = await super().get_index()
|
||||||
self.draw_refresh_icon(),
|
await asyncio.gather(
|
||||||
self.draw_settings_icon(),
|
self.draw_refresh_icon(),
|
||||||
self.setup_plugin_categories(index),
|
self.draw_settings_icon(),
|
||||||
)
|
self.setup_plugin_categories(index),
|
||||||
self._loading_text.delete()
|
)
|
||||||
await self.select_category("All")
|
await self.select_category("All")
|
||||||
await self.draw_search_bar()
|
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):
|
async def draw_category_selection_button(self, label=None):
|
||||||
# v = (self._height - 75) if _uiscale is ba.UIScale.SMALL else (self._height - 105)
|
# 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