fix(pm): skip installed
This commit is contained in:
parent
4a7e44f686
commit
063d7ca693
@ -39,6 +39,7 @@
|
||||
"@typescript-eslint/no-this-alias": "off",
|
||||
"@typescript-eslint/ban-types": "off",
|
||||
"no-unused-vars": "off",
|
||||
"no-useless-catch": "off",
|
||||
"@typescript-eslint/no-unused-vars": "off",
|
||||
"no-empty-function": "off",
|
||||
"@typescript-eslint/no-empty-function": "off",
|
||||
|
@ -338,7 +338,10 @@ export class PluginManager {
|
||||
if (!plugin) {
|
||||
throw new Error(`${name} plugin does not exist`);
|
||||
}
|
||||
await plugin.install();
|
||||
if (!plugin.options.installed) {
|
||||
await plugin.install();
|
||||
plugin.options.installed = true;
|
||||
}
|
||||
await plugin.afterEnable();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user