Skip to content

Reuse [statusItem menu] if possible (fixes #1923)#3812

Merged
cmsj merged 1 commit into
Hammerspoon:masterfrom
HealsCodes:fix/update_menu_while_open
Nov 18, 2025
Merged

Reuse [statusItem menu] if possible (fixes #1923)#3812
cmsj merged 1 commit into
Hammerspoon:masterfrom
HealsCodes:fix/update_menu_while_open

Conversation

@HealsCodes

Copy link
Copy Markdown
Contributor

This change allows calls to hs.menubar:setMenu() to update the menu even if it is currently visible.

The original code would delete the old menu and set a new NSMenu instance however macOS will not show a new menu while the old - now empty one - is still open.

This change allows calls to hs.menubar:setMenu() to update the menu
even if it is currently visible.

The original code would delete the old menu and set a new NSMenu instance
however macOS will not show a new menu while the old - now empty one - is
still open.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pull request does not contain a valid label. Please add one of the following labels: ['pr-fix', 'pr-change', 'pr-feature', 'pr-maintenance']

@HealsCodes

HealsCodes commented Aug 13, 2025

Copy link
Copy Markdown
Contributor Author

I'd love to Mr. GitHub-Bot but I'm not allowed to add labels - not even pr-fix.

@cmsj cmsj added the pr-fix Pull Request implementing a bug fix label Nov 18, 2025
@cmsj cmsj merged commit 530e084 into Hammerspoon:master Nov 18, 2025
2 checks passed
@cmsj

cmsj commented Nov 18, 2025

Copy link
Copy Markdown
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-fix Pull Request implementing a bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants