Skip to content

Commit 6600adf

Browse files
authored
Remove confirmation for opening the merge tool (#5094)
The confirmation used to make sense back when the Open MergeTool command was its own top-level command; however, that command was changed in #4889 to open a menu instead, and Open MergeTool is now just a submenu entry in that menu, so it no longer needs a confirmation. Fixes #5093.
2 parents 17d03ec + f6cba96 commit 6600adf

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

pkg/gui/controllers/helpers/working_tree_helper.go

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -90,18 +90,10 @@ func (self *WorkingTreeHelper) FileForSubmodule(submodule *models.SubmoduleConfi
9090
}
9191

9292
func (self *WorkingTreeHelper) OpenMergeTool() error {
93-
self.c.Confirm(types.ConfirmOpts{
94-
Title: self.c.Tr.MergeToolTitle,
95-
Prompt: self.c.Tr.MergeToolPrompt,
96-
HandleConfirm: func() error {
97-
self.c.LogAction(self.c.Tr.Actions.OpenMergeTool)
98-
return self.c.RunSubprocessAndRefresh(
99-
self.c.Git().WorkingTree.OpenMergeToolCmdObj(),
100-
)
101-
},
102-
})
103-
104-
return nil
93+
self.c.LogAction(self.c.Tr.Actions.OpenMergeTool)
94+
return self.c.RunSubprocessAndRefresh(
95+
self.c.Git().WorkingTree.OpenMergeToolCmdObj(),
96+
)
10597
}
10698

10799
func (self *WorkingTreeHelper) HandleCommitPressWithMessage(initialMessage string, forceSkipHooks bool) error {

pkg/i18n/english.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,6 @@ type TranslationSet struct {
247247
UpdateFailedErr string
248248
ConfirmQuitDuringUpdateTitle string
249249
ConfirmQuitDuringUpdate string
250-
MergeToolTitle string
251-
MergeToolPrompt string
252250
IntroPopupMessage string
253251
NonReloadableConfigWarningTitle string
254252
NonReloadableConfigWarning string
@@ -1343,8 +1341,6 @@ func EnglishTranslationSet() *TranslationSet {
13431341
UpdateFailedErr: "Update failed: {{.errMessage}}",
13441342
ConfirmQuitDuringUpdateTitle: "Currently updating",
13451343
ConfirmQuitDuringUpdate: "An update is in progress. Are you sure you want to quit?",
1346-
MergeToolTitle: "Merge tool",
1347-
MergeToolPrompt: "Are you sure you want to open `git mergetool`?",
13481344
IntroPopupMessage: englishIntroPopupMessage,
13491345
NonReloadableConfigWarningTitle: "Config changed",
13501346
NonReloadableConfigWarning: englishNonReloadableConfigWarning,

0 commit comments

Comments
 (0)