Modify menu item
kaiserdj opened this issue · 2 comments
kaiserdj commented
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
sindresorhus commented
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.
kaiserdj commented
It seems like a very good solution