fix(pm): skip installed

This commit is contained in:
chenos 2023-07-25 09:26:10 +08:00
parent 4a7e44f686
commit 063d7ca693
2 changed files with 5 additions and 1 deletions

View File

@ -39,6 +39,7 @@
"@typescript-eslint/no-this-alias": "off", "@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/ban-types": "off", "@typescript-eslint/ban-types": "off",
"no-unused-vars": "off", "no-unused-vars": "off",
"no-useless-catch": "off",
"@typescript-eslint/no-unused-vars": "off", "@typescript-eslint/no-unused-vars": "off",
"no-empty-function": "off", "no-empty-function": "off",
"@typescript-eslint/no-empty-function": "off", "@typescript-eslint/no-empty-function": "off",

View File

@ -338,7 +338,10 @@ export class PluginManager {
if (!plugin) { if (!plugin) {
throw new Error(`${name} plugin does not exist`); 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(); await plugin.afterEnable();
} }