diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-06 16:55:06 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-06 19:34:32 +1000 |
commit | 6fc031c523cfb8aa1a249997f76e24e8934b9a73 (patch) | |
tree | f6cb1467953082b0cb99384bf4064fb634e3972a /pkg/gui/commit_files_panel.go | |
parent | 8c93289a728991c51e787bcf7dc72813ce0e1a0e (diff) |
hide patch panel if we're in the commits panel and we refresh and it's now exited
Diffstat (limited to 'pkg/gui/commit_files_panel.go')
-rw-r--r-- | pkg/gui/commit_files_panel.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/gui/commit_files_panel.go b/pkg/gui/commit_files_panel.go index d34d1a14d..4b9833c44 100644 --- a/pkg/gui/commit_files_panel.go +++ b/pkg/gui/commit_files_panel.go @@ -94,7 +94,8 @@ func (gui *Gui) handleDiscardOldFileChange() error { } func (gui *Gui) refreshCommitFilesView() error { - if gui.currentSideContext().GetKey() == COMMIT_FILES_CONTEXT_KEY { + currentSideContext := gui.currentSideContext() + if currentSideContext.GetKey() == COMMIT_FILES_CONTEXT_KEY || currentSideContext.GetKey() == BRANCH_COMMITS_CONTEXT_KEY { if err := gui.handleRefreshPatchBuildingPanel(-1); err != nil { return err } |