Fix cover updates
This commit is contained in:
parent
2074f412b3
commit
51f2542d80
1 changed files with 4 additions and 2 deletions
|
@ -28,8 +28,10 @@ CoverBackground {
|
|||
y: coverPage.width * 0.25
|
||||
width: 0.4 * coverPage.width
|
||||
|
||||
onChargingChanged: onChargeChanged()
|
||||
onChargeChanged: {
|
||||
onStateChanged: { updateView() }
|
||||
onChargingChanged: { updateView() }
|
||||
onChargeChanged: { updateView() }
|
||||
function updateView() {
|
||||
if(charge <= settings.lowerLimit && battery.state === "discharging") {
|
||||
coverText.text = qsTr("Connect\ncharger")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue