small code cleanup and added components/ folder for reusable code
This commit is contained in:
@@ -22,7 +22,7 @@ Rectangle {
|
||||
readonly property var bat: UPower.displayDevice
|
||||
readonly property bool batReady: bat && bat.ready && bat.isLaptopBattery
|
||||
|
||||
readonly property bool moduleEnabled: batready
|
||||
readonly property bool moduleEnabled: batReady
|
||||
|
||||
readonly property real pct: batReady ? bat.percentage * 100 : 72
|
||||
readonly property int state: batReady ? bat.state : UPowerDeviceState.Unknown
|
||||
|
||||
Reference in New Issue
Block a user