mirror of
https://github.com/rubickCenter/rubick
synced 2025-07-20 23:20:41 +08:00
bugfix: 修复超级面板插件呼起问题
This commit is contained in:
parent
d8846a0486
commit
70bbe8ab49
@ -110,6 +110,20 @@ function mergePlugins(plugins) {
|
||||
target.push(item)
|
||||
}
|
||||
});
|
||||
ipcRenderer && ipcRenderer.send('optionPlugin', {
|
||||
plugins: target.filter((plugin) => {
|
||||
let hasOption = false;
|
||||
plugin.features.forEach(fe => {
|
||||
fe.cmds.forEach(cmd => {
|
||||
if (cmd.type) {
|
||||
hasOption = true;
|
||||
}
|
||||
})
|
||||
});
|
||||
return hasOption;
|
||||
})
|
||||
});
|
||||
|
||||
return target
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user