summaryrefslogtreecommitdiffstats
path: root/pkg/gui/controllers/helpers
diff options
context:
space:
mode:
authorStefan Haller <stefan@haller-berlin.de>2023-03-04 14:43:20 +0100
committerStefan Haller <stefan@haller-berlin.de>2023-03-04 15:07:48 +0100
commit723504a290ca208c5ee8dc67c86b69b98cfbd069 (patch)
treeb2179df6d685d8fda94379c0b5f17caca0258a27 /pkg/gui/controllers/helpers
parent40a29fd622df85094f9982426437b30d0b603abc (diff)
Keep side context in context stack when pushing a main context
This fixes accordion mode for the commit files panel. When entering a file, the commit files panel should stay expanded.
Diffstat (limited to 'pkg/gui/controllers/helpers')
-rw-r--r--pkg/gui/controllers/helpers/patch_building_helper.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/controllers/helpers/patch_building_helper.go b/pkg/gui/controllers/helpers/patch_building_helper.go
index 25ac63a08..646a8f167 100644
--- a/pkg/gui/controllers/helpers/patch_building_helper.go
+++ b/pkg/gui/controllers/helpers/patch_building_helper.go
@@ -38,7 +38,7 @@ func (self *PatchBuildingHelper) ValidateNormalWorkingTreeState() (bool, error)
// takes us from the patch building panel back to the commit files panel
func (self *PatchBuildingHelper) Escape() error {
- return self.c.PushContext(self.contexts.CommitFiles)
+ return self.c.PopContext()
}
// kills the custom patch and returns us back to the commit files panel if needed