Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify menu item #134

Open
kaiserdj opened this issue Mar 3, 2021 · 2 comments
Open

Modify menu item #134

kaiserdj opened this issue Mar 3, 2021 · 2 comments

Comments

@kaiserdj
Copy link

kaiserdj commented Mar 3, 2021

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
Copy link
Owner

sindresorhus commented Mar 6, 2021

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
Copy link
Author

kaiserdj commented Mar 6, 2021

It seems like a very good solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants