diff --git a/index.json b/index.json index 4996de1..c702c78 100644 --- a/index.json +++ b/index.json @@ -1,6 +1,7 @@ { "plugin_manager_url": "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugin_manager.py", "versions": { + "1.0.15": null, "1.0.14": { "api_version": 8, "commit_sha": "fc5a7f1", diff --git a/plugin_manager.py b/plugin_manager.py index 6c6fd4f..8e67fe3 100644 --- a/plugin_manager.py +++ b/plugin_manager.py @@ -31,7 +31,7 @@ from datetime import datetime from threading import Thread import logging -PLUGIN_MANAGER_VERSION = "1.0.14" +PLUGIN_MANAGER_VERSION = "1.0.15" REPOSITORY_URL = "https://github.com/bombsquad-community/plugin-manager" # Current tag can be changed to "staging" or any other branch in # plugin manager repo for testing purpose. @@ -1589,7 +1589,7 @@ class PluginSourcesWindow(popup.PopupWindow): class PluginCategoryWindow(popup.PopupMenuWindow): def __init__(self, choices, current_choice, origin_widget, asyncio_callback): - choices = (*choices, "Custom Sources") + choices = (*choices, "Installed", "Custom Sources") self._asyncio_callback = asyncio_callback self.scale_origin = origin_widget.get_screen_space_center() super().__init__( @@ -1967,7 +1967,7 @@ class PluginManagerWindow(bui.Window): return try: - category_plugins = await self.plugin_manager.categories[category].get_plugins() + category_plugins = await self.plugin_manager.categories[category if category != 'Installed' else 'All'].get_plugins() except (KeyError, AttributeError): raise CategoryDoesNotExist(f"{category} does not exist.") @@ -1990,7 +1990,10 @@ class PluginManagerWindow(bui.Window): self._last_filter_text = search_term self._last_filter_plugins = plugins - plugin_names_to_draw = tuple(self.draw_plugin_name(plugin) for plugin in plugins) + if category == 'Installed': + plugin_names_to_draw = tuple(self.draw_plugin_name(plugin) for plugin in plugins if plugin.is_installed) + else: + plugin_names_to_draw = tuple(self.draw_plugin_name(plugin) for plugin in plugins) for plugin in self._columnwidget.get_children(): plugin.delete()