summaryrefslogtreecommitdiffstats
path: root/pkg/gui/controllers/confirmation_controller.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2023-03-23 18:47:29 +1100
committerJesse Duffield <jessedduffield@gmail.com>2023-04-30 13:19:53 +1000
commitdb12853bbe825d69686ea71161497d1bbb120b8e (patch)
treeebfb066dfef8eb75acdc1ea2bd5f15ff4f4a6507 /pkg/gui/controllers/confirmation_controller.go
parent711674f6cd68ed3a35e5b0329ff0cf3289fbc7d1 (diff)
lots of changes
Diffstat (limited to 'pkg/gui/controllers/confirmation_controller.go')
-rw-r--r--pkg/gui/controllers/confirmation_controller.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/pkg/gui/controllers/confirmation_controller.go b/pkg/gui/controllers/confirmation_controller.go
index 09496f721..09af35586 100644
--- a/pkg/gui/controllers/confirmation_controller.go
+++ b/pkg/gui/controllers/confirmation_controller.go
@@ -7,17 +7,17 @@ import (
type ConfirmationController struct {
baseController
- *controllerCommon
+ c *ControllerCommon
}
var _ types.IController = &ConfirmationController{}
func NewConfirmationController(
- common *controllerCommon,
+ common *ControllerCommon,
) *ConfirmationController {
return &ConfirmationController{
- baseController: baseController{},
- controllerCommon: common,
+ baseController: baseController{},
+ c: common,
}
}
@@ -51,7 +51,7 @@ func (self *ConfirmationController) GetKeybindings(opts types.KeybindingsOpts) [
func (self *ConfirmationController) GetOnFocusLost() func(types.OnFocusLostOpts) error {
return func(types.OnFocusLostOpts) error {
- self.helpers.Confirmation.DeactivateConfirmationPrompt()
+ self.c.Helpers().Confirmation.DeactivateConfirmationPrompt()
return nil
}
}