Closed jeromelesaux closed 3 years ago
Try something like this, run it in gorutine
func checkProgress() {
ticker := time.NewTicker(time.Second / 5).C
for {
select {
case <-ticker:
ui.QueueMain(func() {
mainwin.SetTitle(comp.UIState.Status)
})
}
}
}
thanks I try this hint.
works fine.
In a Onclick button function I do a treatment in background (set a progress bar) like this :
How can I wait for the end of the dosomething function without blocking main thread ?