summaryrefslogtreecommitdiff
path: root/durationSlider.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-17 21:46:50 -0600
committerJeff Carr <[email protected]>2024-01-17 21:46:50 -0600
commit32fe455bb5c75b756ca0ff7e2a5d076a30978db4 (patch)
tree252a5e804d86d78a41cdca4f83b460baee71bfb3 /durationSlider.go
parent751b6059c0432ede8de32656b777196cfdd6adaf (diff)
now should work without needed to actually displayv0.12.6
a nice improvement. actual toolkit widgets arent' actually needed. It's faster and can run in the dark autotypist compiles and runs Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'durationSlider.go')
-rw-r--r--durationSlider.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/durationSlider.go b/durationSlider.go
index 819fe50..cceb65b 100644
--- a/durationSlider.go
+++ b/durationSlider.go
@@ -66,7 +66,7 @@ func NewDurationSlider(n *gui.Node, label string, low time.Duration, high time.D
d.l = n.NewLabel(label)
d.s = n.NewSlider(label, 0, 1000)
d.s.Custom = func () {
- d.Duration = low + (high - low) * time.Duration(d.s.GetInt()) / 1000
+ d.Duration = low + (high - low) * time.Duration(d.s.Int()) / 1000
log.Println("d.Duration =", d.Duration)
s := fmt.Sprintf("%s (%v)", d.Label, d.Duration)
d.l.SetText(s)