diff --git a/plugin_manager.py b/plugin_manager.py index 807cb4c..1a30a86 100644 --- a/plugin_manager.py +++ b/plugin_manager.py @@ -480,14 +480,14 @@ class PluginManagerWindow(ba.Window, PluginManager): self._loading_text = ba.textwidget( parent=self._root_widget, - position=(-10, self._height - 150), + position=(35, self._height - 150), size=(self._width, 25), text="Loading...", color=ba.app.ui.title_color, scale=0.7, h_align="center", v_align="center", - maxwidth=270, + maxwidth=400, ) scroll_size_x = (400 if _uiscale is ba.UIScale.SMALL else @@ -607,11 +607,14 @@ class PluginManagerWindow(ba.Window, PluginManager): ) await self.select_category("All") await self.draw_search_bar() - self._loading_text.delete() - except Exception: + except RuntimeError: + # User probably went back before the PluginManagerWindow could finish loading. + pass + except urllib.error.URLError: ba.textwidget(edit=self._loading_text, - text='Error') - print("Plugin Manager could not load due to a few Technical Issues.") + text="Make sure you are connected to the Internet and try again.") + else: + self._loading_text.delete() async def draw_category_selection_button(self, label=None): # v = (self._height - 75) if _uiscale is ba.UIScale.SMALL else (self._height - 105)