Skip to content

Stop rebuilding the menu bar menu on every block poll - #93

Merged
ian-at-strix merged 1 commit into
mainfrom
macos/menu-flicker
Oct 23, 2026
Merged

ian-at-strix merged 1 commit into
mainfrom
macos/menu-flicker

Conversation

@ian-at-strix

Copy link
Copy Markdown
Collaborator

What: trim the held-back list only when it has more than 10 entries.
Why: the per-package rows in the menu bar menu flicker when clicked. The poll reassigned blocked every 0.5 s, and since it's @Published that rebuilt the menu each time, even with nothing new.
How: removeFirst only when over 10, so blocked changes only when a block arrives.
Tested: swiftc -typecheck on macos/App.
Untested: the menu itself; not run on a Mac with a held-back package.

@ian-at-strix
ian-at-strix merged commit 2c5bb47 into main Oct 23, 2026
7 checks passed
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