Skip to content

Setup adds a Battery widget that only shows AC on Macs without a battery #456

Closed

Description

@M4n0x

What happens

The Developer, Workday, Notch and Everything presets add Battery on every Mac (Sources/StableBar/SetupPreferences.swift:194-200). On a Mac mini, Mac Studio, iMac or Mac Pro, the battery provider finds no internal battery and returns a plug icon and "AC" (Sources/StableBar/PowerMonitor.swift:24-25). The bar shows that for good. The preset tiles show the Battery icon there too.

Steps to reproduce

  1. On a Mac without a battery, open setup.
  2. Pick Developer, Workday, Notch or Everything.

Expected

Setup adds Battery, and shows it on the preset tiles, only on a Mac with an internal battery.

Environment

StableBar main at a900ef5 (the same setup code is in v0.12.0-beta.20261107173938.631), macOS 27.2, 14-inch MacBook Pro with a notch, and a 2560×1440 external display as the main display. The battery output was replaced with what a Mac without a battery reports.

Evidence

Found in a UX review of setup: the code on main, plus offscreen renders of the setup views drawn with sample data and a stubbed system, so no permission or setting was touched.

Developer preset on a Mac without a battery: a plug and AC

Related

Triaged by Claude Code (Claude Opus 5.5).

Activity

  1. added
    bug
    P1
    on Nov 8, 2026
  2. stablebar-releases commented on Nov 10, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.12.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1bugreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions