From a1b9ab39f723f73162b15f68e1207ef674ec7ce5 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 19 Jan 2024 12:21:04 -0600 Subject: SetValue() and SetChecked() Signed-off-by: Jeff Carr --- durationSlider.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'durationSlider.go') diff --git a/durationSlider.go b/durationSlider.go index 0824b63..8e79818 100644 --- a/durationSlider.go +++ b/durationSlider.go @@ -43,14 +43,14 @@ func (n *Duration) Set(d time.Duration) { step = timeRange / 1000 if step == 0 { log.Log(INFO, "duration.Set() division by step == 0", n.Low, n.High, timeRange, step) - n.s.Set(0) + n.s.SetValue(0) return } offset = d - n.Low i := int(offset / step) log.Log(INFO, "duration.Set() =", n.Low, n.High, d, "i =", i) // n.s.I = i - n.s.Set(i) + n.s.SetValue(i) n.s.Custom() } -- cgit v1.2.3