mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 23:56:24 -04:00
hide secondary view when escaping patch building panel
This commit is contained in:
parent
262ff24c5b
commit
59d61f00a6
|
|
@ -102,9 +102,10 @@ func (gui *Gui) handleEscapePatchBuildingPanel() error {
|
|||
|
||||
if gui.currentContext().GetKey() == gui.Contexts.PatchBuilding.Context.GetKey() {
|
||||
return gui.switchContext(gui.Contexts.CommitFiles.Context)
|
||||
} else {
|
||||
// need to re-focus in case the secondary view should now be hidden
|
||||
return gui.currentContext().HandleFocus()
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (gui *Gui) secondaryPatchPanelUpdateOpts() *viewUpdateOpts {
|
||||
|
|
|
|||
Loading…
Reference in a new issue