don't crash on track with no artists
This commit is contained in:
@@ -693,7 +693,6 @@ type TrackRow struct {
|
|||||||
trackIdx int
|
trackIdx int
|
||||||
trackNum int
|
trackNum int
|
||||||
trackID string
|
trackID string
|
||||||
artistID string
|
|
||||||
albumID string
|
albumID string
|
||||||
isPlaying bool
|
isPlaying bool
|
||||||
isFavorite bool
|
isFavorite bool
|
||||||
@@ -775,7 +774,6 @@ func (t *TrackRow) Update(tm *trackModel, rowNum int) {
|
|||||||
t.Focused = false
|
t.Focused = false
|
||||||
}
|
}
|
||||||
t.trackID = tr.ID
|
t.trackID = tr.ID
|
||||||
t.artistID = tr.ArtistIDs[0]
|
|
||||||
t.albumID = tr.AlbumID
|
t.albumID = tr.AlbumID
|
||||||
|
|
||||||
t.name.Segments[0].(*widget.TextSegment).Text = tr.Name
|
t.name.Segments[0].(*widget.TextSegment).Text = tr.Name
|
||||||
|
|||||||
Reference in New Issue
Block a user