Skip to content

batterymonitor: fix repeated low battery warnings#1477

Open
Wekendd wants to merge 3 commits into
caelestia-dots:mainfrom
Wekendd:fix/battery-toasts
Open

batterymonitor: fix repeated low battery warnings#1477
Wekendd wants to merge 3 commits into
caelestia-dots:mainfrom
Wekendd:fix/battery-toasts

Conversation

@Wekendd

@Wekendd Wekendd commented May 14, 2026

Copy link
Copy Markdown

Fixes issue #736 (which was closed likely due to inactivity). There was a PR aiming at fixing this (#915) but it was closed for some reason. New behavior:

  • Battery toasts only go off if the current battery level specifically drops to their level (old behavior used to send all toasts that satisfied specified value >= current battery level--this caused multiple toasts to go off at once)
  • When charger unplugged or shell started, sends the closest battery warning toast above the current battery level (if one exists).
  • No reliance on temporary state (not buggy across reloads)

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