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.

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