summaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-04-06 16:55:06 +1000
committerJesse Duffield <jessedduffield@gmail.com>2021-04-06 19:34:32 +1000
commit6fc031c523cfb8aa1a249997f76e24e8934b9a73 (patch)
treef6cb1467953082b0cb99384bf4064fb634e3972a /pkg
parent8c93289a728991c51e787bcf7dc72813ce0e1a0e (diff)
hide patch panel if we're in the commits panel and we refresh and it's now exited
Diffstat (limited to 'pkg')
-rw-r--r--pkg/gui/commit_files_panel.go3
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
}