Start/Stop charge is checkable if we are NOT disconnected
This commit is contained in:
5
main.go
5
main.go
@ -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")
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user