move refresh into AppendTracks impl

This commit is contained in:
Drew Weymouth
2024-09-06 17:46:47 -07:00
parent 5f8f2e7d7e
commit 65efac0ba5
2 changed files with 2 additions and 2 deletions
+2 -1
View File
@@ -345,12 +345,13 @@ func (t *Tracklist) GetTracks() []*mediaprovider.Track {
})
}
// Append more tracks to the tracklist. Does not issue Refresh call. Thread-safe.
// Append more tracks to the tracklist. Thread-safe.
func (t *Tracklist) AppendTracks(trs []*mediaprovider.Track) {
t.tracksMutex.Lock()
defer t.tracksMutex.Unlock()
t.tracksOrigOrder = append(t.tracks, util.ToTrackListModels(trs)...)
t.doSortTracks()
t.list.Refresh()
}
func (t *Tracklist) SelectAll() {