1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-06 03:53:59 +02:00

hide patch panel if we're in the commits panel and we refresh and it's now exited

This commit is contained in:
Jesse Duffield 2021-04-06 16:55:06 +10:00
parent 8c93289a72
commit 6fc031c523

View File

@ -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
}