Skip to content

Conversation

@Mearman
Copy link

@Mearman Mearman commented Dec 22, 2025

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:

  • macOS 26.1 (Tahoe) Build 25B78
  • Stats 2.11.62

Terminal command to check menu bar visibility:

osascript -e '
tell application "System Events"
    tell process "Stats"
        set y to item 2 of (position of menu bar item 1 of menu bar 1)
        if y < 100 then
            return "ENABLED - Menu bar visible (y=" & y & ")"
        else
            return "DISABLED - Menu bar hidden (y=" & y & ")"
        end if
    end tell
end tell
'

Related: #2704, #2658, #2662

On macOS 26 (Tahoe), a new "Allow in Menu Bar" permission exists in
System Settings → General → Login Items & Extensions. When disabled,
Stats' NSStatusItem widgets are rendered off-screen with no indication
to the user.

This commit adds detection by checking if the status item's window
Y position is far below the expected menu bar area. If detected, an
alert is shown with instructions and a button to open System Settings.

The check runs once per session to avoid spamming the user.

Closes exelban#2704
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