summaryrefslogtreecommitdiff
path: root/update.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-31 12:41:28 -0600
committerJeff Carr <[email protected]>2024-01-31 12:41:28 -0600
commit1a9b13dda5e13d0786718768443bab4a6916aab9 (patch)
treeae05054e4889c2b1b7153b2992d80c4e856df20b /update.go
parent513c38922b1dca37bb2b2d64c5997e44b5796d00 (diff)
use SetText() not SetValue()
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'update.go')
-rw-r--r--update.go8
1 files changed, 4 insertions, 4 deletions
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")
}
}