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

Build menus on demand #61

Open
thallgren opened this issue Oct 2, 2023 · 0 comments
Open

Build menus on demand #61

thallgren opened this issue Oct 2, 2023 · 0 comments

Comments

@thallgren
Copy link

Sometimes, a menu hierarchy is not known when the application starts, and it is expensive to fully populate the menu. It would be therefore be great if a menu could be built on demand (when hovered on a mac, or when clicked on a Linux).

Ideally, this would be implemented by providing a way to register a callback function that would be called when the menu is about to be displayed. This function would then populate the menu. Ideally, such a callback function would also be possible on the top menu, and get called when the tray icon is clicked.

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

No branches or pull requests

1 participant