summaryrefslogtreecommitdiffstats
path: root/pkg/gui/controllers/files_remove_controller.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/controllers/files_remove_controller.go')
-rw-r--r--pkg/gui/controllers/files_remove_controller.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/pkg/gui/controllers/files_remove_controller.go b/pkg/gui/controllers/files_remove_controller.go
index 17d673e15..35093273c 100644
--- a/pkg/gui/controllers/files_remove_controller.go
+++ b/pkg/gui/controllers/files_remove_controller.go
@@ -12,17 +12,17 @@ import (
type FilesRemoveController struct {
baseController
- *controllerCommon
+ c *ControllerCommon
}
var _ types.IController = &FilesRemoveController{}
func NewFilesRemoveController(
- common *controllerCommon,
+ common *ControllerCommon,
) *FilesRemoveController {
return &FilesRemoveController{
- baseController: baseController{},
- controllerCommon: common,
+ baseController: baseController{},
+ c: common,
}
}
@@ -148,7 +148,7 @@ func (self *FilesRemoveController) ResetSubmodule(submodule *models.SubmoduleCon
return self.c.WithWaitingStatus(self.c.Tr.LcResettingSubmoduleStatus, func() error {
self.c.LogAction(self.c.Tr.Actions.ResetSubmodule)
- file := self.helpers.WorkingTree.FileForSubmodule(submodule)
+ file := self.c.Helpers().WorkingTree.FileForSubmodule(submodule)
if file != nil {
if err := self.c.Git().WorkingTree.UnStageFile(file.Names(), file.Tracked); err != nil {
return self.c.Error(err)