Skip to content

Commit

Permalink
bugfix: 修复超级面板插件呼起问题
Browse files Browse the repository at this point in the history
  • Loading branch information
muwoo committed Jul 9, 2021
1 parent d8846a0 commit 70bbe8a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/renderer/assets/common/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 70bbe8a

Please sign in to comment.