feat: detect and alert when menu bar permission is disabled (macOS 26+) #2874
+56
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
macOS 26 introduced a new "Allow in Menu Bar" permission in System Settings → General → Login Items & Extensions. When this is disabled for Stats, the widgets get rendered off-screen and users have no idea why nothing is showing up.
This PR detects that situation by checking if the status item's window position is way below where the menu bar should be. If so, it shows an alert explaining the issue with a button to jump straight to the right settings pane.
The check only runs once per session so it won't keep bugging the user.
Identified and tested on:
Terminal command to check menu bar visibility:
Related: #2704, #2658, #2662