summaryrefslogtreecommitdiffstats
path: root/pkg/gui/controllers/files_controller.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-05-08 14:23:32 +1000
committerJesse Duffield <jessedduffield@gmail.com>2022-05-08 14:26:18 +1000
commit6f8063217ddf132dca36b75affaa7f7273f89d9d (patch)
tree871c1b76adf464b11fe04c43bbd2a4a7ac5d452e /pkg/gui/controllers/files_controller.go
parent125e948d82c33226f92a1ebe18361633116370d3 (diff)
rename displayString to label for menu items
Diffstat (limited to 'pkg/gui/controllers/files_controller.go')
-rw-r--r--pkg/gui/controllers/files_controller.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/pkg/gui/controllers/files_controller.go b/pkg/gui/controllers/files_controller.go
index 26c6e131f..c461af919 100644
--- a/pkg/gui/controllers/files_controller.go
+++ b/pkg/gui/controllers/files_controller.go
@@ -500,19 +500,19 @@ func (self *FilesController) handleStatusFilterPressed() error {
Title: self.c.Tr.FilteringMenuTitle,
Items: []*types.MenuItem{
{
- DisplayString: self.c.Tr.FilterStagedFiles,
+ Label: self.c.Tr.FilterStagedFiles,
OnPress: func() error {
return self.setStatusFiltering(filetree.DisplayStaged)
},
},
{
- DisplayString: self.c.Tr.FilterUnstagedFiles,
+ Label: self.c.Tr.FilterUnstagedFiles,
OnPress: func() error {
return self.setStatusFiltering(filetree.DisplayUnstaged)
},
},
{
- DisplayString: self.c.Tr.ResetCommitFilterState,
+ Label: self.c.Tr.ResetCommitFilterState,
OnPress: func() error {
return self.setStatusFiltering(filetree.DisplayAll)
},
@@ -557,14 +557,14 @@ func (self *FilesController) createStashMenu() error {
Title: self.c.Tr.LcStashOptions,
Items: []*types.MenuItem{
{
- DisplayString: self.c.Tr.LcStashAllChanges,
+ Label: self.c.Tr.LcStashAllChanges,
OnPress: func() error {
return self.handleStashSave(self.git.Stash.Save, self.c.Tr.Actions.StashAllChanges, self.c.Tr.NoFilesToStash)
},
Key: 'a',
},
{
- DisplayString: self.c.Tr.LcStashAllChangesKeepIndex,
+ Label: self.c.Tr.LcStashAllChangesKeepIndex,
OnPress: func() error {
// if there are no staged files it behaves the same as Stash.Save
return self.handleStashSave(self.git.Stash.StashAndKeepIndex, self.c.Tr.Actions.StashAllChangesKeepIndex, self.c.Tr.NoFilesToStash)
@@ -572,7 +572,7 @@ func (self *FilesController) createStashMenu() error {
Key: 'i',
},
{
- DisplayString: self.c.Tr.LcStashStagedChanges,
+ Label: self.c.Tr.LcStashStagedChanges,
OnPress: func() error {
// there must be something in staging otherwise the current implementation mucks the stash up
if !self.helpers.WorkingTree.AnyStagedFiles() {
@@ -583,7 +583,7 @@ func (self *FilesController) createStashMenu() error {
Key: 's',
},
{
- DisplayString: self.c.Tr.LcStashUnstagedChanges,
+ Label: self.c.Tr.LcStashUnstagedChanges,
OnPress: func() error {
if self.helpers.WorkingTree.AnyStagedFiles() {
return self.handleStashSave(self.git.Stash.StashUnstagedChanges, self.c.Tr.Actions.StashUnstagedChanges, self.c.Tr.NoFilesToStash)