Start/Stop charge is checkable if we are NOT disconnected

This commit is contained in:
2021-07-14 11:34:59 -04:00
parent 1148c1d5c2
commit 260738a32d

View File

@ -300,9 +300,8 @@ func setValues() {
tempSetting.SetReadOnly(false)
startStopCharge.SetChecked(chargeStats.ChargingState == "Charging")
if chargeStats.ChargingState == "Disconnected" {
startStopCharge.SetCheckable(false)
}
startStopCharge.SetCheckable(chargeStats.ChargingState != "Disconnected")
}