Skip to content

Commit

Permalink
chore(song): don't reset progress bar style
Browse files Browse the repository at this point in the history
  • Loading branch information
Topvennie committed Dec 12, 2024
1 parent 9ed3cbc commit deae2ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tui/view/song/song.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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()
}

Expand Down

0 comments on commit deae2ee

Please sign in to comment.