Skip to content

Commit

Permalink
fix: make sure to clear lyrics when the next song has none
Browse files Browse the repository at this point in the history
  • Loading branch information
xxxserxxx committed Jan 3, 2025
1 parent aed8c0d commit ed2fac1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions page_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,10 @@ func (ui *Ui) createQueuePage() *QueuePage {
},
// function that gets called when the actual asset is loaded
func(id string, lyrics []subsonic.StructuredLyrics) {
// Make sure we clear out old lyrics
queuePage.currentLyrics = subsonic.StructuredLyrics{
Lines: make([]subsonic.LyricsLine, 0),
}
// Do nothing if there are no lyrics
if len(lyrics) == 0 {
return
Expand Down

0 comments on commit ed2fac1

Please sign in to comment.