don't crash on track with no artists

This commit is contained in:
Drew Weymouth
2023-11-14 09:05:02 -08:00
parent 831ce1de97
commit 1d8e864638
-2
View File
@@ -693,7 +693,6 @@ type TrackRow struct {
trackIdx int
trackNum int
trackID string
artistID string
albumID string
isPlaying bool
isFavorite bool
@@ -775,7 +774,6 @@ func (t *TrackRow) Update(tm *trackModel, rowNum int) {
t.Focused = false
}
t.trackID = tr.ID
t.artistID = tr.ArtistIDs[0]
t.albumID = tr.AlbumID
t.name.Segments[0].(*widget.TextSegment).Text = tr.Name