diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-10-08 13:16:25 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-10-08 13:16:25 +1100 |
| commit | dbb3d7c67b51f157bc993987068786dc2e6140b6 (patch) | |
| tree | 616e2599a4fa49b63bc2599e397c733a3e840f84 /modules/bar/components | |
| parent | assets: fix bongocat border (#752) (diff) | |
| download | caelestia-shell-dbb3d7c67b51f157bc993987068786dc2e6140b6.tar.gz caelestia-shell-dbb3d7c67b51f157bc993987068786dc2e6140b6.tar.bz2 caelestia-shell-dbb3d7c67b51f157bc993987068786dc2e6140b6.zip | |
internal: fix bat charge state
Counts fully charged and pending charge as charging, same as prior to
90c051cf
Diffstat (limited to 'modules/bar/components')
| -rw-r--r-- | modules/bar/components/StatusIcons.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/bar/components/StatusIcons.qml b/modules/bar/components/StatusIcons.qml index 470e381..27fd9f8 100644 --- a/modules/bar/components/StatusIcons.qml +++ b/modules/bar/components/StatusIcons.qml @@ -235,7 +235,7 @@ StyledRect { } const perc = UPower.displayDevice.percentage; - const charging = UPower.displayDevice.state === UPowerDeviceState.Charging; + const charging = [UPowerDeviceState.Charging, UPowerDeviceState.FullyCharged, UPowerDeviceState.PendingCharge].includes(UPower.displayDevice.state); if (perc === 1) return charging ? "battery_charging_full" : "battery_full"; let level = Math.floor(perc * 7); |