summaryrefslogtreecommitdiff
path: root/modules/bar/components
diff options
context:
space:
mode:
Diffstat (limited to 'modules/bar/components')
-rw-r--r--modules/bar/components/StatusIcons.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/bar/components/StatusIcons.qml b/modules/bar/components/StatusIcons.qml
index c1ad697..470e381 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.onBattery;
+ const charging = UPower.displayDevice.state === UPowerDeviceState.Charging;
if (perc === 1)
return charging ? "battery_charging_full" : "battery_full";
let level = Math.floor(perc * 7);