Skip to content

fix(MenuBarSection): use isEnabled instead of direct controlItem.isAddedToMenuBar check - #964

Open
bunnysayzz wants to merge 1 commit into
jordanbaird:mainfrom
bunnysayzz:fix/use-isEnabled-for-section-check
Open

fix(MenuBarSection): use isEnabled instead of direct controlItem.isAddedToMenuBar check#964
bunnysayzz wants to merge 1 commit into
jordanbaird:mainfrom
bunnysayzz:fix/use-isEnabled-for-section-check

Conversation

@bunnysayzz

@bunnysayzz bunnysayzz commented Jul 14, 2026

Copy link
Copy Markdown

Resolves a TODO the maintainer left in MenuBarSection.show(). The method was checking controlItem.isAddedToMenuBar directly, but isEnabled already exists and handles this (returns controlItem.isAddedToMenuBar for hidden sections, always true for visible section). Swapped the guard to use isEnabled instead.

No behavior change, just cleaner code.

@bunnysayzz

Copy link
Copy Markdown
Author

Friendly check-in: this one-line isEnabled fix has been ready for about a month, but the Swift lint workflow has been stuck in action_required since Jul 14 (fork PRs need a maintainer click to approve the run). If you can approve that workflow run, it should clear the last gate. Thanks!

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.

1 participant