-
-
Notifications
You must be signed in to change notification settings - Fork 202
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
feat: implement set_menu
for system tray
#106
Conversation
I'm not sure if this works. I'm not sure how |
set_menu
for system tray
Oh sweet! You're extending it. I'll have time to work on this tonight, or maybe over the weekend |
Ok, so It works fine on The only issue we have is Gonna try to dig in. @amrbashir you have an idea? |
yeah I saw that issue yesterday, It was because the |
# Conflicts: # src/platform_impl/windows/window.rs
You guys rock! I wasn't expecting you to just take over the PR 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lemarier Why disabling this for windows ?
I think it is fine that the menu is dropped, if they want to set a new menu, they probably need to keep it alive as possible either build it within the same lifetime of event_loop or just static lifetime.
I wonder if we shouldn't handle it internally? Because it's not how macOS and Linux work, but you are right... maybe we can ship it anyway and see how it goes |
Well, we can either add drop impl for linux and macOS or remove all drop impls. |
on windows did the menus are linked to the app? so when closed they are all dropped anyway? |
I think so. |
Thanks for your contribution @fnune we do appreciate it a lot! I'm sure the community will enjoy this new feature. Have a great day! |
What kind of change does this PR introduce? (check at least one)
Does this PR introduce a breaking change? (check one)
The PR fulfills these requirements:
fix: #xxx[,#xxx]
, where "xxx" is the issue number)If adding a new feature, the PR's description includes:
Other information: