mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-12 21:05:48 +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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue