sindresorhus/electron-context-menu

Modify menu item

kaiserdj opened this issue · 2 comments

Hi,
I would like to know if there is any option to be able to modify the menu after being created, obtain the menu or inject new MenuItem

Yeah, I can see how that could be useful. Currently, there's only a way to append/prepend to the default menu. Maybe we could add a updateMenu option that is called before the menu is shown, that receives the menu and lets you modify it. I'm open to other ideas.

It seems like a very good solution