Skip to content

Commit

Permalink
fixup! Allow to switch branches in Commit View
Browse files Browse the repository at this point in the history
Remove unnecessary tooltips
  • Loading branch information
Sebastian Flügge committed Dec 28, 2024
1 parent b7f91c2 commit 5bc8f3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 2 additions & 4 deletions pkg/gui/controllers/helpers/refs_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,7 @@ func (self *RefsHelper) CreateCheckoutMenu(commit *models.Commit) error {
self.c.LogAction(self.c.Tr.Actions.CheckoutCommit)
return self.CheckoutRef(hash, types.CheckoutRefOptions{})
},
Tooltip: self.c.Tr.CheckoutCommitTooltip,
Key: 'd',
Key: 'd',
})

if len(branches) > 0 {
Expand All @@ -298,8 +297,7 @@ func (self *RefsHelper) CreateCheckoutMenu(commit *models.Commit) error {
self.c.LogAction(self.c.Tr.Actions.CheckoutBranch)
return self.CheckoutRef(branch.RefName(), types.CheckoutRefOptions{})
},
Tooltip: self.c.Tr.CheckoutBranchTooltip,
Key: rune(index + 1 + '0'), // Convert 1-based index to key
Key: rune(index + 1 + '0'), // Convert 1-based index to key
}
})...)
} else {
Expand Down
2 changes: 0 additions & 2 deletions pkg/i18n/english.go
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,6 @@ type TranslationSet struct {
FetchingRemoteStatus string
CheckoutCommit string
CheckoutCommitTooltip string
CheckoutBranchTooltip string
NoBranchesFoundAtCommitTooltip string
SureCheckoutThisCommit string
GitFlowOptions string
Expand Down Expand Up @@ -1531,7 +1530,6 @@ func EnglishTranslationSet() *TranslationSet {
FetchingRemoteStatus: "Fetching remote",
CheckoutCommit: "Checkout commit",
CheckoutCommitTooltip: "Checkout the selected commit as a detached HEAD.",
CheckoutBranchTooltip: "Checkout the selected branch.",
NoBranchesFoundAtCommitTooltip: "No branches found at selected commit.",
SureCheckoutThisCommit: "Are you sure you want to checkout this commit?",
GitFlowOptions: "Show git-flow options",
Expand Down

0 comments on commit 5bc8f3d

Please sign in to comment.