summaryrefslogtreecommitdiff
path: root/modules/lock/Fetch.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-10-08 13:16:25 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-10-08 13:16:25 +1100
commitdbb3d7c67b51f157bc993987068786dc2e6140b6 (patch)
tree616e2599a4fa49b63bc2599e397c733a3e840f84 /modules/lock/Fetch.qml
parentassets: fix bongocat border (#752) (diff)
downloadcaelestia-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/lock/Fetch.qml')
-rw-r--r--modules/lock/Fetch.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/lock/Fetch.qml b/modules/lock/Fetch.qml
index 021f084..0e64343 100644
--- a/modules/lock/Fetch.qml
+++ b/modules/lock/Fetch.qml
@@ -114,7 +114,7 @@ ColumnLayout {
active: UPower.displayDevice.isLaptopBattery
sourceComponent: FetchText {
- text: `BATT: ${UPower.displayDevice.state === UPowerDeviceState.Charging ? "(+) " : ""}${Math.round(UPower.displayDevice.percentage * 100)}%`
+ text: `BATT: ${[UPowerDeviceState.Charging, UPowerDeviceState.FullyCharged, UPowerDeviceState.PendingCharge].includes(UPower.displayDevice.state) ? "(+) " : ""}${Math.round(UPower.displayDevice.percentage * 100)}%`
}
}
}