don't need to call fyne.Do from goroutine anymore

This commit is contained in:
Drew Weymouth
2025-02-11 17:27:46 -03:00
parent 253c08cbf3
commit 91a57f381a
+2 -1
View File
@@ -346,7 +346,8 @@ func (t *tracklistRowBase) Update(tm *util.TrackListModel, rowNum int) {
if tracklistUpdateCounter.NumEventsSince(time.Now().Add(-150*time.Millisecond)) > 20 {
t.doUpdate(&emptyTrack, 1)
if t.nextUpdateModel == nil {
go fyne.Do(func() {
// queue to run later
fyne.Do(func() {
if t.nextUpdateModel != nil {
t.doUpdate(t.nextUpdateModel, t.nextUpdateRowNum)
}