From 1a9b13dda5e13d0786718768443bab4a6916aab9 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 31 Jan 2024 12:41:28 -0600 Subject: use SetText() not SetValue() Signed-off-by: Jeff Carr --- update.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'update.go') diff --git a/update.go b/update.go index 3c98eaf..bd25ff1 100644 --- a/update.go +++ b/update.go @@ -28,13 +28,13 @@ func (ls *LinuxStatus) setSpeed(duration time.Duration) { log.Log(WARN, "can't actually warn") return } - ls.speedActual.SetValue(s) + ls.speedActual.SetText(s) if duration > 500*time.Millisecond { - ls.speed.SetValue("SLOW") + ls.speed.SetText("SLOW") } else if duration > 100*time.Millisecond { - ls.speed.SetValue("OK") + ls.speed.SetText("OK") } else { - ls.speed.SetValue("FAST") + ls.speed.SetText("FAST") } } -- cgit v1.2.3