Skip to content

Commit

Permalink
fix(player): Fix options not always updating during pause
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Apr 27, 2024
1 parent eaf7f2c commit 1ff6584
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/movie/player.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,12 @@ func (p *Player) HelpView() string {
}

func (p *Player) pause() {
p.optionViewStale = true
p.clearTimeouts()
}

func (p *Player) play() tea.Cmd {
p.optionViewStale = true
p.clearTimeouts()
p.playCtx, p.playCancel = context.WithCancel(context.Background())
return func() tea.Msg {
Expand Down

0 comments on commit 1ff6584

Please sign in to comment.