Skip to content

Commit 5bc8f3d

Browse files
committed
fixup! Allow to switch branches in Commit View
Remove unnecessary tooltips
1 parent b7f91c2 commit 5bc8f3d

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

pkg/gui/controllers/helpers/refs_helper.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,7 @@ func (self *RefsHelper) CreateCheckoutMenu(commit *models.Commit) error {
286286
self.c.LogAction(self.c.Tr.Actions.CheckoutCommit)
287287
return self.CheckoutRef(hash, types.CheckoutRefOptions{})
288288
},
289-
Tooltip: self.c.Tr.CheckoutCommitTooltip,
290-
Key: 'd',
289+
Key: 'd',
291290
})
292291

293292
if len(branches) > 0 {
@@ -298,8 +297,7 @@ func (self *RefsHelper) CreateCheckoutMenu(commit *models.Commit) error {
298297
self.c.LogAction(self.c.Tr.Actions.CheckoutBranch)
299298
return self.CheckoutRef(branch.RefName(), types.CheckoutRefOptions{})
300299
},
301-
Tooltip: self.c.Tr.CheckoutBranchTooltip,
302-
Key: rune(index + 1 + '0'), // Convert 1-based index to key
300+
Key: rune(index + 1 + '0'), // Convert 1-based index to key
303301
}
304302
})...)
305303
} else {

pkg/i18n/english.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,6 @@ type TranslationSet struct {
524524
FetchingRemoteStatus string
525525
CheckoutCommit string
526526
CheckoutCommitTooltip string
527-
CheckoutBranchTooltip string
528527
NoBranchesFoundAtCommitTooltip string
529528
SureCheckoutThisCommit string
530529
GitFlowOptions string
@@ -1531,7 +1530,6 @@ func EnglishTranslationSet() *TranslationSet {
15311530
FetchingRemoteStatus: "Fetching remote",
15321531
CheckoutCommit: "Checkout commit",
15331532
CheckoutCommitTooltip: "Checkout the selected commit as a detached HEAD.",
1534-
CheckoutBranchTooltip: "Checkout the selected branch.",
15351533
NoBranchesFoundAtCommitTooltip: "No branches found at selected commit.",
15361534
SureCheckoutThisCommit: "Are you sure you want to checkout this commit?",
15371535
GitFlowOptions: "Show git-flow options",

0 commit comments

Comments
 (0)