diff options
| author | AAGaming <aa@mail.catvibers.me> | 2022-07-01 11:50:08 -0400 |
|---|---|---|
| committer | AAGaming <aa@mail.catvibers.me> | 2022-07-01 11:50:08 -0400 |
| commit | 934a50f683f579695292f88437d91d4fce2f4edc (patch) | |
| tree | 26f9381fd34bea72700f2015c32f4462af307ff4 | |
| parent | aa4f1b1e87903e4902f414637f76b10d1ae87076 (diff) | |
| download | decky-loader-934a50f683f579695292f88437d91d4fce2f4edc.tar.gz decky-loader-934a50f683f579695292f88437d91d4fce2f4edc.zip | |
fix legacy plugin duplication
| -rw-r--r-- | frontend/src/plugin-loader.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/frontend/src/plugin-loader.tsx b/frontend/src/plugin-loader.tsx index e0dedb34..b3df0f28 100644 --- a/frontend/src/plugin-loader.tsx +++ b/frontend/src/plugin-loader.tsx @@ -89,7 +89,9 @@ class PluginLoader extends Logger { this.reloadLock = true; this.log(`Trying to load ${name}`); - const oldPlugin = this.plugins.find((plugin) => plugin.name === name); + const oldPlugin = this.plugins.find( + (plugin) => plugin.name === name || plugin.name === name.replace('$LEGACY_', ''), + ); if (oldPlugin) { oldPlugin.onDismount?.(); this.plugins = this.plugins.filter((plugin) => plugin !== oldPlugin); |
