diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2023-03-23 18:47:29 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2023-04-30 13:19:53 +1000 |
commit | db12853bbe825d69686ea71161497d1bbb120b8e (patch) | |
tree | ebfb066dfef8eb75acdc1ea2bd5f15ff4f4a6507 /pkg/gui/controllers/stash_controller.go | |
parent | 711674f6cd68ed3a35e5b0329ff0cf3289fbc7d1 (diff) |
lots of changes
Diffstat (limited to 'pkg/gui/controllers/stash_controller.go')
-rw-r--r-- | pkg/gui/controllers/stash_controller.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pkg/gui/controllers/stash_controller.go b/pkg/gui/controllers/stash_controller.go index 377b029c3..3e1b65ce8 100644 --- a/pkg/gui/controllers/stash_controller.go +++ b/pkg/gui/controllers/stash_controller.go @@ -9,17 +9,17 @@ import ( type StashController struct { baseController - *controllerCommon + c *ControllerCommon } var _ types.IController = &StashController{} func NewStashController( - common *controllerCommon, + common *ControllerCommon, ) *StashController { return &StashController{ - baseController: baseController{}, - controllerCommon: common, + baseController: baseController{}, + c: common, } } @@ -57,7 +57,7 @@ func (self *StashController) GetKeybindings(opts types.KeybindingsOpts) []*types func (self *StashController) GetOnRenderToMain() func() error { return func() error { - return self.helpers.Diff.WithDiffModeCheck(func() error { + return self.c.Helpers().Diff.WithDiffModeCheck(func() error { var task types.UpdateTask stashEntry := self.context().GetSelected() if stashEntry == nil { @@ -165,7 +165,7 @@ func (self *StashController) postStashRefresh() error { } func (self *StashController) handleNewBranchOffStashEntry(stashEntry *models.StashEntry) error { - return self.helpers.Refs.NewBranch(stashEntry.RefName(), stashEntry.Description(), "") + return self.c.Helpers().Refs.NewBranch(stashEntry.RefName(), stashEntry.Description(), "") } func (self *StashController) handleRenameStashEntry(stashEntry *models.StashEntry) error { |