[Hotfix] Check if plugin is enabled when removing

This commit is contained in:
Beef 2023-01-07 23:21:29 +00:00
parent 0aea93ab52
commit e51ae60aef

View file

@ -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];
}