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:
parent
8c93289a72
commit
6fc031c523
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user