From e51ae60aef53ce5cc59e530232fe7771a8938746 Mon Sep 17 00:00:00 2001 From: Beef Date: Sat, 7 Jan 2023 23:21:29 +0000 Subject: [PATCH] [Hotfix] Check if plugin is enabled when removing --- src/lib/plugins.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]; }