Skip to content

fix(menu): refresh submenus after incremental updates - #499

Draft
melonamin wants to merge 1 commit into
mainfrom
codex/fix-issue-487
Draft

fix(menu): refresh submenus after incremental updates#499
melonamin wants to merge 1 commit into
mainfrom
codex/fix-issue-487

Conversation

@melonamin

Copy link
Copy Markdown
Member

Summary

  • revalidate the live NSMenu after incremental updates while it is open
  • add a regression test for removing a submenu parent from the middle of a menu

Root cause

The incremental menu tree remained correct, but AppKit could retain stale enabled state for submenu parents after items shifted during menu tracking. Updating the menu at the existing open-menu synchronization point refreshes validation and layout.

Testing

  • xcodebuild test -project SwiftBar.xcodeproj -scheme SwiftBar -destination 'platform=macOS'

Fixes #487

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

Successfully merging this pull request may close these issues.

Sub-menus don't always render properly in 2.1.0b576

1 participant