quickshell: updated battery update logic
This commit is contained in:
@@ -8,7 +8,7 @@ RowLayout {
|
|||||||
height: 20
|
height: 20
|
||||||
anchors.centerIn: root
|
anchors.centerIn: root
|
||||||
visible: UPower.displayDevice.percentage != 0
|
visible: UPower.displayDevice.percentage != 0
|
||||||
property string charging: (UPower.displayDevice.changeRate > 0) ? "Charging.." : ""
|
property string charging: UPower.displayDevice.state == UPowerDeviceState.Charging ? "Charging.." : ""
|
||||||
Rectangle {
|
Rectangle {
|
||||||
implicitHeight: text.height
|
implicitHeight: text.height
|
||||||
implicitWidth: text.width
|
implicitWidth: text.width
|
||||||
|
|||||||
Reference in New Issue
Block a user