summaryrefslogtreecommitdiffstats
path: root/pkg/gui/patch_building_panel.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/patch_building_panel.go')
-rw-r--r--pkg/gui/patch_building_panel.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/patch_building_panel.go b/pkg/gui/patch_building_panel.go
index e1fb823fb..094799022 100644
--- a/pkg/gui/patch_building_panel.go
+++ b/pkg/gui/patch_building_panel.go
@@ -109,8 +109,8 @@ func (gui *Gui) handleEscapePatchBuildingPanel() error {
gui.GitCommand.PatchManager.Reset()
}
- if gui.currentContext().GetKey() == gui.Contexts.PatchBuilding.Context.GetKey() {
- return gui.pushContext(gui.Contexts.CommitFiles.Context)
+ if gui.currentContext().GetKey() == gui.Contexts.PatchBuilding.GetKey() {
+ return gui.pushContext(gui.Contexts.CommitFiles)
} else {
// need to re-focus in case the secondary view should now be hidden
return gui.currentContext().HandleFocus()