handle loading plugins with same name as installed plugin (update)

This commit is contained in:
f321x
2025-04-29 13:08:20 +02:00
parent 4a8590077e
commit 3bfe1d2d28
2 changed files with 6 additions and 0 deletions

View File

@@ -401,6 +401,8 @@ class Plugins(DaemonThread):
self.config.set_key(f'plugins.{name}.enabled', [])
def install_external_plugin(self, name, path, privkey, manifest):
# uninstall old version first to get rid of old zip files when updating plugin
self.uninstall(name)
self.external_plugin_metadata[name] = manifest
self.authorize_plugin(name, path, privkey)