summaryrefslogtreecommitdiffstats
path: root/pkg/gui/patch_options_panel.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-04-03 11:32:14 +1100
committerJesse Duffield <jessedduffield@gmail.com>2021-04-06 19:34:32 +1000
commitbc9a99387f68afb24863d17ab4d29c1686843a76 (patch)
treeaac694046f93d457177086d4c5afb5a0c12ea302 /pkg/gui/patch_options_panel.go
parent5289d49f75e9735f129e1f8e2a2f9dc74373515b (diff)
refactor of contexts and filtering
Diffstat (limited to 'pkg/gui/patch_options_panel.go')
-rw-r--r--pkg/gui/patch_options_panel.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/patch_options_panel.go b/pkg/gui/patch_options_panel.go
index a340efc2a..b6a373ed9 100644
--- a/pkg/gui/patch_options_panel.go
+++ b/pkg/gui/patch_options_panel.go
@@ -42,7 +42,7 @@ func (gui *Gui) handleCreatePatchOptionsMenu() error {
},
}...)
- if gui.currentContext().GetKey() == gui.Contexts.BranchCommits.Context.GetKey() {
+ if gui.currentContext().GetKey() == gui.Contexts.BranchCommits.GetKey() {
selectedCommit := gui.getSelectedLocalCommit()
if selectedCommit != nil && gui.GitCommand.PatchManager.To != selectedCommit.Sha {
// adding this option to index 1
@@ -179,7 +179,7 @@ func (gui *Gui) handleApplyPatch(reverse bool) error {
func (gui *Gui) handleResetPatch() error {
gui.GitCommand.PatchManager.Reset()
if gui.currentContextKeyIgnoringPopups() == MAIN_PATCH_BUILDING_CONTEXT_KEY {
- if err := gui.pushContext(gui.Contexts.CommitFiles.Context); err != nil {
+ if err := gui.pushContext(gui.Contexts.CommitFiles); err != nil {
return err
}
}