diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2023-03-23 13:04:57 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2023-04-30 13:19:53 +1000 |
commit | 711674f6cd68ed3a35e5b0329ff0cf3289fbc7d1 (patch) | |
tree | 965c3503390213b1a7d1fb3737a9712b3af86550 /pkg/gui/controllers/suggestions_controller.go | |
parent | fc91ef6a59e3cf8336b1cef78c210907c08a4cda (diff) |
standardise controller helper methods
Diffstat (limited to 'pkg/gui/controllers/suggestions_controller.go')
-rw-r--r-- | pkg/gui/controllers/suggestions_controller.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/controllers/suggestions_controller.go b/pkg/gui/controllers/suggestions_controller.go index ca8a488a7..5772e35b6 100644 --- a/pkg/gui/controllers/suggestions_controller.go +++ b/pkg/gui/controllers/suggestions_controller.go @@ -33,7 +33,7 @@ func (self *SuggestionsController) GetKeybindings(opts types.KeybindingsOpts) [] }, { Key: opts.GetKey(opts.Config.Universal.TogglePanel), - Handler: func() error { return self.c.ReplaceContext(self.contexts.Confirmation) }, + Handler: func() error { return self.c.ReplaceContext(self.c.Contexts().Confirmation) }, }, } @@ -52,5 +52,5 @@ func (self *SuggestionsController) Context() types.Context { } func (self *SuggestionsController) context() *context.SuggestionsContext { - return self.contexts.Suggestions + return self.c.Contexts().Suggestions } |