Fix #142: disable hyperlinks for track artists that are not album artists

This commit is contained in:
Drew Weymouth
2023-04-24 19:13:41 -07:00
parent 25ca42a31e
commit 02e51e5aa2
2 changed files with 44 additions and 11 deletions
+1
View File
@@ -477,6 +477,7 @@ func (t *TrackRow) Update(tr *subsonic.Child, rowNum int) {
t.name.Segments[0].(*widget.TextSegment).Text = tr.Title
t.artist.SetText(tr.Artist)
t.artist.Disabled = tr.ArtistID == ""
t.album.SetText(tr.Album)
t.dur.Segments[0].(*widget.TextSegment).Text = util.SecondsToTimeString(float64(tr.Duration))
t.year.Segments[0].(*widget.TextSegment).Text = strconv.Itoa(tr.Year)