Skip to content

Commit

Permalink
Redraw commits view when showGraph setting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhaller committed Feb 13, 2024
1 parent dd697b4 commit 2d5be5d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/gui/controllers/local_commits_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,10 @@ func (self *LocalCommitsController) handleOpenLogMenu() error {
return func() error {
self.c.GetAppState().GitLogShowGraph = value
self.c.SaveAppStateAndLogError()
return nil
if err := self.c.PostRefreshUpdate(self.c.Contexts().LocalCommits); err != nil {
return err
}
return self.c.PostRefreshUpdate(self.c.Contexts().SubCommits)
}
}
return self.c.Menu(types.CreateMenuOptions{
Expand Down

0 comments on commit 2d5be5d

Please sign in to comment.