refactoring 3/?

This commit is contained in:
Turann_
2026-01-28 00:57:26 +03:00
parent a0c0983a62
commit 117ffe5550
5 changed files with 101 additions and 94 deletions
+1 -7
View File
@@ -77,14 +77,8 @@ Loader {
Item {
id: batteryIndicator
property bool initializationComplete: false
Timer {
interval: 500
running: true
onTriggered: batteryIndicator.initializationComplete = true
}
property bool isReady: initializationComplete && BatteryService.batteryReady
property bool isReady: BatteryService.ready && BatteryService.batteryReady
property real percent: BatteryService.batteryPercentage
property bool charging: BatteryService.batteryCharging
property bool pluggedIn: BatteryService.batteryPluggedIn