mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-02-03 13:21:56 +02: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() {
|
if gui.currentContext().GetKey() == gui.Contexts.PatchBuilding.Context.GetKey() {
|
||||||
return gui.switchContext(gui.Contexts.CommitFiles.Context)
|
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 {
|
func (gui *Gui) secondaryPatchPanelUpdateOpts() *viewUpdateOpts {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user