diff --git a/src/lib/plugins.ts b/src/lib/plugins.ts index 2988be5..379fd90 100644 --- a/src/lib/plugins.ts +++ b/src/lib/plugins.ts @@ -118,7 +118,8 @@ export function stopPlugin(id: string) { } export function removePlugin(id: string) { - stopPlugin(id); + const plugin = plugins[id]; + if (plugin.enabled) stopPlugin(id); delete plugins[id]; }