From 6fc031c523cfb8aa1a249997f76e24e8934b9a73 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Tue, 6 Apr 2021 16:55:06 +1000 Subject: [PATCH] hide patch panel if we're in the commits panel and we refresh and it's now exited --- pkg/gui/commit_files_panel.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }