Skip to content

Fix stale popup data when reopening a module popup#2988

Open
eyupcanakman wants to merge 1 commit intoexelban:masterfrom
eyupcanakman:fix/popup-refresh-on-open-2140
Open

Fix stale popup data when reopening a module popup#2988
eyupcanakman wants to merge 1 commit intoexelban:masterfrom
eyupcanakman:fix/popup-refresh-on-open-2140

Conversation

@eyupcanakman
Copy link
Copy Markdown
Contributor

@eyupcanakman eyupcanakman commented Feb 26, 2026

Fixes #2140.

Summary

High update intervals leave popup values stale on reopen. Reader.start() only primes a fresh read during initial setup, so when a popup reader pauses on close and is restarted on open, it waits for the next scheduled tick before showing current data. Add a branch that dispatches a background read when a popup or sleep reader reopens while inactive.

Testing

  • xcodebuild -project Stats.xcodeproj -scheme Stats -destination 'platform=macOS' -configuration Release archive CODE_SIGNING_ALLOWED=NO
  • Verified on macOS: popup refreshes immediately on reopen with a 5s update interval

Prime popup and sleep readers on popup reopen so higher update
intervals don't leave stale numbers visible until the next tick.
@eyupcanakman eyupcanakman changed the title Refresh popup data when opening module popups Fix stale popup data when reopening a module popup Apr 18, 2026
@eyupcanakman eyupcanakman force-pushed the fix/popup-refresh-on-open-2140 branch from ac66b1a to f33e4d6 Compare April 18, 2026 14:58
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.

[Feature Request] Refresh data when clicking menu bar item.

2 participants