bumblebee-status/bumblebee_status
Alex Kelly c637392bd0 Correct battery modules handling of critical/warning states
The logic for the critical/warning handling on the battery modules was
applied BEFORE the discharging-<pct> logic.  This made it  possible for
those discharging states to get applied over a critical/warning and
allow a theme to override the critical/warning colors with a state of
"discharging-10", for example.

This change moves that logic after the discharging state, so that it
will always "win" if critical or warning states are set.

This also adds the "discharging" battery state to the critical/warning
check so the state will apply if the battery is not on AC power, but
would return normal otherwise.  Meaning, if the battery is "critical"
from a percentage check, but is plugged into power, the critical state
is removed.
2022-09-16 15:36:06 -04:00
..
core [core] fix concurrency issues 2022-09-09 20:58:59 +02:00
modules Correct battery modules handling of critical/warning states 2022-09-16 15:36:06 -04:00
util [util] fix location timeouts 2022-08-31 19:12:05 +02:00
__init__.py [tests] Fix failing tests 2020-05-10 12:56:30 +02:00
_version.py fix typo 2022-07-21 11:37:33 +05:30
discover.py [doc] update API docs 2020-05-10 13:25:13 +02:00