Clear plugin cache on re-install (#5395)

This commit is contained in:
Northword 2025-07-22 11:55:02 +08:00 committed by Dan Stillman
parent 6dbefee007
commit 445737c261

View file

@ -630,6 +630,10 @@ Zotero.Plugins = new function () {
}
await _callMethod(existingAddon, 'uninstall', reason);
Services.obs.notifyObservers(null, "startupcache-invalidate");
unregisterLocales(existingAddon);
clearDefaultPrefs(existingAddon);
_unloadScope(existingAddon.id);
addonVersions.delete(existingAddon.id);
}
},