fix plugin uninstalls

This commit is contained in:
AAGaming
2024-07-04 01:27:13 -04:00
parent 2b2a1d9e39
commit a45df8566e
7 changed files with 54 additions and 26 deletions
+3 -2
View File
@@ -147,8 +147,9 @@ class PluginBrowser:
except Exception as e:
logger.error(f"Plugin {name} in {plugin_dir} was not uninstalled")
logger.error(f"Error at {str(e)}", exc_info=e)
if self.loader.watcher:
self.loader.watcher.disabled = False
finally:
if self.loader.watcher:
self.loader.watcher.disabled = False
async def _install(self, artifact: str, name: str, version: str, hash: str):
await self.loader.ws.emit("loader/plugin_download_start", name)