Expose batteryIcon - primaryDevice.

This commit is contained in:
Turann_
2026-02-01 00:31:48 +03:00
parent 0d37c7c82d
commit 214eb9d1cd
+1
View File
@@ -20,6 +20,7 @@ Singleton {
readonly property bool batteryPluggedIn: isPluggedIn(primaryDevice)
readonly property bool batteryReady: isDeviceReady(primaryDevice)
readonly property bool batteryPresent: isDevicePresent(primaryDevice)
readonly property string batteryIcon: getIcon(Math.round(batteryPercentage), batteryCharging, batteryPluggedIn, batteryReady)
readonly property var laptopBatteries: UPower.devices.values.filter(d => d.isLaptopBattery)
readonly property var bluetoothBatteries: {