Skip to content

Commit

Permalink
fix(player): Fix options being rerendered every frame
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Sep 6, 2023
1 parent 1cb9ddf commit 79307f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/movie/player.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ func (p Player) View() string {
))
}

func (p Player) OptionsView() string {
func (p *Player) OptionsView() string {
p.optionViewStale = false
options := make([]string, 0, len(playerOptions))
for i, option := range playerOptions {
if option == OptionPause && !p.isPlaying() {
Expand Down

0 comments on commit 79307f6

Please sign in to comment.