diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2024-02-08 11:00:09 +0100 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2024-02-16 13:23:35 +0100 |
commit | 7f4a05debf58908ed706ca4659a6591fd9a08245 (patch) | |
tree | cb8446828d78752bd6211ed9b1bbf569fb464cc2 | |
parent | e354a9bb486842e8e9376d27ef72f405a2dba7b3 (diff) |
Redraw commits view when showGraph setting changes
-rw-r--r-- | pkg/gui/controllers/local_commits_controller.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/gui/controllers/local_commits_controller.go b/pkg/gui/controllers/local_commits_controller.go index c88e4d0a8..68a0ea742 100644 --- a/pkg/gui/controllers/local_commits_controller.go +++ b/pkg/gui/controllers/local_commits_controller.go @@ -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{ |