bugfix: 修复超级面板插件呼起问题

This commit is contained in:
muwoo 2021-07-09 16:10:54 +08:00
parent d8846a0486
commit 70bbe8ab49

View File

@ -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
}