From 260738a32d5052ec01fc501c6b1ce797a2618e93 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Wed, 14 Jul 2021 11:34:59 -0400 Subject: [PATCH] Start/Stop charge is checkable if we are NOT disconnected --- main.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 5d44d44..382e1ce 100644 --- a/main.go +++ b/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") }