fix bug where only one lyrics viewer loads if both are visible

This commit is contained in:
Drew Weymouth
2025-11-01 12:28:25 -07:00
parent 5aa8d36ace
commit 694e59d5b6
+2
View File
@@ -46,6 +46,8 @@ func (lm *LyricsManager) FetchLyricsAsync(song *mediaprovider.Track, cb func(str
go lm.fetchLyrics(ctx, song, func(id string, lyrics *mediaprovider.Lyrics) {
lm.lock.Lock()
defer lm.lock.Unlock()
lm.fetchInProgressID = ""
lm.fetchInProgressCancel()
for _, cb := range lm.cbs {
cb(id, lyrics)
}