Add better handling for unloading of plugins

This commit is contained in:
TrainDoctor
2023-01-29 13:32:58 -08:00
parent c2b76d9099
commit 2e53fb217a
3 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ class PluginBrowser:
try:
logger.info("uninstalling " + name)
logger.info(" at dir " + self.find_plugin_folder(name))
logger.debug("unloading %s" % str(name))
logger.debug("calling frontend unload for %s" % str(name))
await tab.evaluate_js(f"DeckyPluginLoader.unloadPlugin('{name}')")
if self.plugins[name]:
self.plugins[name].stop()