don't need to call fyne.Do from goroutine anymore
This commit is contained in:
@@ -346,7 +346,8 @@ func (t *tracklistRowBase) Update(tm *util.TrackListModel, rowNum int) {
|
|||||||
if tracklistUpdateCounter.NumEventsSince(time.Now().Add(-150*time.Millisecond)) > 20 {
|
if tracklistUpdateCounter.NumEventsSince(time.Now().Add(-150*time.Millisecond)) > 20 {
|
||||||
t.doUpdate(&emptyTrack, 1)
|
t.doUpdate(&emptyTrack, 1)
|
||||||
if t.nextUpdateModel == nil {
|
if t.nextUpdateModel == nil {
|
||||||
go fyne.Do(func() {
|
// queue to run later
|
||||||
|
fyne.Do(func() {
|
||||||
if t.nextUpdateModel != nil {
|
if t.nextUpdateModel != nil {
|
||||||
t.doUpdate(t.nextUpdateModel, t.nextUpdateRowNum)
|
t.doUpdate(t.nextUpdateModel, t.nextUpdateRowNum)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user