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() }