mirror of
https://github.com/rubickCenter/rubick
synced 2025-10-26 22:51:25 +08:00
bugfix: 修复超级面板插件呼起问题
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user