[Hotfix] Check if plugin is enabled when removing
This commit is contained in:
parent
0aea93ab52
commit
e51ae60aef
1 changed files with 2 additions and 1 deletions
|
@ -118,7 +118,8 @@ export function stopPlugin(id: string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function removePlugin(id: string) {
|
export function removePlugin(id: string) {
|
||||||
stopPlugin(id);
|
const plugin = plugins[id];
|
||||||
|
if (plugin.enabled) stopPlugin(id);
|
||||||
delete plugins[id];
|
delete plugins[id];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue