a few more goroutines

This commit is contained in:
Drew Weymouth
2025-02-08 08:35:34 -03:00
parent ff78a79906
commit c7adeb5e32
6 changed files with 28 additions and 41 deletions
+3 -1
View File
@@ -199,7 +199,9 @@ func NewDebouncer(dur time.Duration, callOnDone func()) func() {
if timer != nil {
timer.Stop()
}
timer = time.AfterFunc(dur, callOnDone)
timer = time.AfterFunc(dur, func() {
fyne.Do(callOnDone)
})
}
}