From 4a4283988f607a0eb703bf7c9da04e69edc28191 Mon Sep 17 00:00:00 2001 From: Doloro1978 Date: Thu, 19 Mar 2026 12:30:34 +0000 Subject: [PATCH] quickshell: updated battery update logic --- config/modules/quickshell/quickshell/BatteryWidget.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/modules/quickshell/quickshell/BatteryWidget.qml b/config/modules/quickshell/quickshell/BatteryWidget.qml index bb575a2..fa0b47c 100644 --- a/config/modules/quickshell/quickshell/BatteryWidget.qml +++ b/config/modules/quickshell/quickshell/BatteryWidget.qml @@ -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