From deae2ee3f11085dd4d364f05b4fc0742aa2e288c Mon Sep 17 00:00:00 2001 From: Topvennie Date: Thu, 12 Dec 2024 14:17:07 +0100 Subject: [PATCH] chore(song): don't reset progress bar style --- tui/view/song/song.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tui/view/song/song.go b/tui/view/song/song.go index 2a6a41e..68496f3 100644 --- a/tui/view/song/song.go +++ b/tui/view/song/song.go @@ -143,7 +143,7 @@ func (m *Model) Update(msg tea.Msg) (view.View, tea.Cmd) { lyric, ok := m.current.lyrics.Next() if !ok { // We're too late to display lyrics - m.current = playing{song: nil} + m.current.song = nil return m, m.current.stopwatch.Reset() } startTime = startTime.Add(lyric.Duration) @@ -184,7 +184,7 @@ func (m *Model) Update(msg tea.Msg) (view.View, tea.Cmd) { if msg.done { // Song has finished. Reset variables - m.current = playing{song: nil} + m.current.song = nil return m, m.current.stopwatch.Reset() }