mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-24 09:16:29 +00:00
fix(plugins): disable incompatible plugins before lazy contributions
This commit is contained in:
1 parent
0256e7471d
commit
e20f2a9986
5 files changed
+160
No files matched your search
@@ -107,6 +107,7 @@ class PluginManager {
|
||||
await this.#ready();
|
||||
if (enabled) {
|
||||
const plugin = this.database.getActivePlugin(pluginId);
|
||||
if (plugin) await this.packageStore.assertCompatible?.(plugin);
|
||||
if (plugin?.runtime?.quarantinedAt != null) {
|
||||
this.database.clearQuarantine(pluginId, plugin.activeVersion);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user