quickshell: updated battery update logic

This commit is contained in:
2026-03-19 12:30:34 +00:00
parent 4a1e5afd79
commit 4a4283988f

View File

@@ -8,7 +8,7 @@ RowLayout {
height: 20
anchors.centerIn: root
visible: UPower.displayDevice.percentage != 0
property string charging: (UPower.displayDevice.changeRate > 0) ? "Charging.." : ""
property string charging: UPower.displayDevice.state == UPowerDeviceState.Charging ? "Charging.." : ""
Rectangle {
implicitHeight: text.height
implicitWidth: text.width