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

Fix multiple enumeration of TrayIcon menu items on win32 causing broken tray icon menus #8544

Merged
merged 2 commits into from Jul 20, 2022

Conversation

danwalmsley
Copy link
Member

@danwalmsley danwalmsley commented Jul 19, 2022

The menu exporter was using yield, meaning that avalonias logic would be given new menuitem instances every time it enumerated the menus.

This basically meant that many things were broken by the time the menu was displayed.

Most significantly the Parent of the menu item was no longer correct, meaning, no closing when item clicked, and no menu items not highlighting when pointer is hovering over.

Fixes #8312
Fixes #7864

@danwalmsley danwalmsley changed the title MenuItem might have to look up the logical tree to find its menu pare… Fix multiple enumeration of TrayIcon menu items on win32 causing broken tray icon menus Jul 20, 2022
@danwalmsley danwalmsley marked this pull request as ready for review July 20, 2022 10:49
@danwalmsley danwalmsley mentioned this pull request Jul 20, 2022
@danwalmsley danwalmsley changed the base branch from stable/0.10.x to master July 20, 2022 10:58
@danwalmsley danwalmsley merged commit 5e1c48e into master Jul 20, 2022
@danwalmsley danwalmsley deleted the fixes/trayicon-interaction branch July 20, 2022 10:59
danwalmsley pushed a commit that referenced this pull request Jul 20, 2022
Fix multiple enumeration of TrayIcon menu items on win32 causing broken tray icon menus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants