1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-04-25 12:24:47 +02:00

chore: rename branch upstream view options method

This commit is contained in:
AzraelSec 2023-09-22 12:19:38 +02:00
parent 07cbb62510
commit bc21921001

View File

@ -109,7 +109,7 @@ func (self *BranchesController) GetKeybindings(opts types.KeybindingsOpts) []*ty
}, },
{ {
Key: opts.GetKey(opts.Config.Branches.SetUpstream), Key: opts.GetKey(opts.Config.Branches.SetUpstream),
Handler: self.checkSelected(self.setUpstream), Handler: self.checkSelected(self.viewUpstreamOptions),
Description: self.c.Tr.ViewBranchUpstreamOptions, Description: self.c.Tr.ViewBranchUpstreamOptions,
Tooltip: self.c.Tr.ViewBranchUpstreamOptionsTooltip, Tooltip: self.c.Tr.ViewBranchUpstreamOptionsTooltip,
OpensMenu: true, OpensMenu: true,
@ -141,7 +141,7 @@ func (self *BranchesController) GetOnRenderToMain() func() error {
} }
} }
func (self *BranchesController) setUpstream(selectedBranch *models.Branch) error { func (self *BranchesController) viewUpstreamOptions(selectedBranch *models.Branch) error {
viewDivergenceItem := &types.MenuItem{ viewDivergenceItem := &types.MenuItem{
LabelColumns: []string{self.c.Tr.ViewDivergenceFromUpstream}, LabelColumns: []string{self.c.Tr.ViewDivergenceFromUpstream},
OnPress: func() error { OnPress: func() error {