Browse Source

Start/Stop charge is checkable if we are NOT disconnected

ui_file
Gregory Rudolph 3 years ago
parent
commit
260738a32d
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 5
      main.go

5
main.go

@ -300,9 +300,8 @@ func setValues() { @@ -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")
}

Loading…
Cancel
Save