mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-08-01 19:28:13 +08:00
Fixed: #171 || guiMenu is a function
This commit is contained in:
@@ -143,7 +143,7 @@ const handlePluginActions = (ipcMain, CONFIG_PATH) => {
|
||||
const picgo = new PicGo(CONFIG_PATH)
|
||||
const plugin = picgo.pluginLoader.getPlugin(`picgo-plugin-${name}`)
|
||||
const guiApi = new GuiApi(ipcMain, event.sender, picgo)
|
||||
if (plugin.guiMenu && plugin.guiMenu.length > 0) {
|
||||
if (plugin.guiMenu && plugin.guiMenu(picgo).length > 0) {
|
||||
const menu = plugin.guiMenu(picgo)
|
||||
menu.forEach(item => {
|
||||
if (item.label === label) {
|
||||
|
||||
Reference in New Issue
Block a user