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

Mac: Fix disabled menu items with a Dialog #2653

Merged
merged 1 commit into from
May 24, 2024

Conversation

cwensley
Copy link
Member

On Mac, if you define a Menu on a Dialog all of its items (except system items) end up being disabled without having to add a native style to set MenuItemHandler.EnabledWhenModal to true.

Now when you define a menu for a Dialog, and it is the current dialog, all of those items will be enabled.

Also, macOS now creates a blank menu on startup instead of leaving it null, so we now ensure we don't remember that so other dialogs/forms don't get a completely blank menu.

@cwensley cwensley added the bug label May 24, 2024
@cwensley cwensley added this to the 2.8.4 milestone May 24, 2024
@cwensley cwensley merged commit fbee392 into picoe:develop May 24, 2024
3 checks passed
@cwensley cwensley deleted the curtis/mac-menus-on-dialogs branch May 24, 2024 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant