Fix: Filter out core plugins from the plugin list
This commit is contained in:
parent
05e51596d2
commit
30b6f2aaad
2 changed files with 6 additions and 9 deletions
|
|
@ -77,7 +77,7 @@ const config = {
|
|||
constModules: {
|
||||
globals: {
|
||||
"bunny-build-info": {
|
||||
version: `"1.1.7.1"`,
|
||||
version: `"1.1.7.2"`,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -593,15 +593,12 @@ export default function Plugins() {
|
|||
.map((id) => registeredPlugins.get(id)!)
|
||||
.map(unifyBunnyPlugin);
|
||||
|
||||
// Keep core plugins registration available if needed elsewhere
|
||||
const corePlugins = [...corePluginInstances.keys()]
|
||||
.map((id) => registeredPlugins.get(id))
|
||||
.filter((m): m is NonNullable<typeof m> => Boolean(m))
|
||||
.map(unifyBunnyPlugin);
|
||||
|
||||
// Merge lists: show Vendetta-managed plugins first (recent first),
|
||||
// include core plugins, then Bunny-installed externals (recent first).
|
||||
return [...vdPlugins, ...corePlugins, ...bnPlugins];
|
||||
// then Bunny-installed externals (recent first).
|
||||
const allPlugins = [...vdPlugins, ...bnPlugins];
|
||||
|
||||
// Filter out core plugins from the list
|
||||
return allPlugins.filter((plugin) => !isCorePlugin(plugin.id));
|
||||
}}
|
||||
ListHeaderComponent={() => null}
|
||||
installAction={{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue