diff --git a/src/plugin_system/store_install.py b/src/plugin_system/store_install.py index 6e9da62a..8e8a90b4 100644 --- a/src/plugin_system/store_install.py +++ b/src/plugin_system/store_install.py @@ -95,7 +95,7 @@ class _InstallMixin: if installed: self._discard_backup( plugin_id, backup_path, "install", - new_path=self._find_plugin_path(plugin_id) or plugin_path) + new_path=self._existing_install(plugin_id) or plugin_path) return True self._restore_backup(plugin_id, plugin_path, backup_path, "Install") diff --git a/src/plugin_system/store_update.py b/src/plugin_system/store_update.py index 92f8816f..4c1ec480 100644 --- a/src/plugin_system/store_update.py +++ b/src/plugin_system/store_update.py @@ -309,7 +309,7 @@ class _UpdateMixin: # rather than the old directory name. self._discard_backup( plugin_id, backup_path, "update", - new_path=self._find_plugin_path(plugin_id) or plugin_path) + new_path=self._existing_install(plugin_id) or plugin_path) return True # Bad network, registry error...: the user keeps a working plugin.