Plugin must be installed before checking if it's enabled

This commit is contained in:
Rikko 2022-08-27 18:03:36 +05:30
parent b39b234c0c
commit 63d674cfd4

View file

@ -143,7 +143,7 @@ class StartupTasks:
all_plugins = await self.plugin_manager.categories["All"].get_plugins()
plugins_to_update = []
for plugin in all_plugins:
if await plugin.get_local().is_enabled() and plugin.has_update():
if plugin.is_installed and await plugin.get_local().is_enabled() and plugin.has_update():
plugins_to_update.append(plugin.update())
await asyncio.gather(*plugins_to_update)