only return focus if we already have it

This commit is contained in:
Jesse Duffield 2020-08-21 21:08:06 +10:00
parent 53da858c06
commit 4080e9b501

View file

@ -82,9 +82,13 @@ func (gui *Gui) handleEscapePatchBuildingPanel() error {
gui.GitCommand.PatchManager.Reset()
}
if gui.currentContext().GetKey() == gui.Contexts.PatchBuilding.Context.GetKey() {
return gui.switchContext(gui.Contexts.CommitFiles.Context)
}
return nil
}
func (gui *Gui) refreshSecondaryPatchPanel() error {
// TODO: swap out for secondaryPatchPanelUpdateOpts