mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-10-06 07:15:09 +00:00
fix(plugins): find the new copy via _existing_install, as install_plugin does
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -95,7 +95,7 @@ class _InstallMixin:
|
|||||||
if installed:
|
if installed:
|
||||||
self._discard_backup(
|
self._discard_backup(
|
||||||
plugin_id, backup_path, "install",
|
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
|
return True
|
||||||
|
|
||||||
self._restore_backup(plugin_id, plugin_path, backup_path, "Install")
|
self._restore_backup(plugin_id, plugin_path, backup_path, "Install")
|
||||||
|
|||||||
@@ -309,7 +309,7 @@ class _UpdateMixin:
|
|||||||
# rather than the old directory name.
|
# rather than the old directory name.
|
||||||
self._discard_backup(
|
self._discard_backup(
|
||||||
plugin_id, backup_path, "update",
|
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
|
return True
|
||||||
|
|
||||||
# Bad network, registry error...: the user keeps a working plugin.
|
# Bad network, registry error...: the user keeps a working plugin.
|
||||||
|
|||||||
Reference in New Issue
Block a user