From ed2fac105589018775315853d2d3275544d6b740 Mon Sep 17 00:00:00 2001 From: "Sean E. Russell" Date: Fri, 3 Jan 2025 09:35:35 -0600 Subject: [PATCH] fix: make sure to clear lyrics when the next song has none --- page_queue.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/page_queue.go b/page_queue.go index e1e19bb..b9efc42 100644 --- a/page_queue.go +++ b/page_queue.go @@ -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