private void DiffTool2_Click(object sender, EventArgs e)
{
GitCommands.GitCommands gitCommands = new GitCommands.GitCommands();
if (string.IsNullOrEmpty(FormSettings.GetGlobalDiffToolFromConfig()))
{
if (MessageBox.Show("There is no difftool configured. Do you want to configure kdiff3 as your difftool?" + Environment.NewLine + "Select no if you want to configure a different difftool yourself.", "Mergetool", MessageBoxButtons.YesNo) == DialogResult.Yes)
{
SolveKDiffTool2();
GlobalDiffTool.Text = "kdiff3";
}
else
{
tabControl1.SelectTab("GlobalSettingsPage");
return;
}
}
if (FormSettings.GetGlobalDiffToolFromConfig().Equals("kdiff3", StringComparison.CurrentCultureIgnoreCase))
{
SolveKDiffTool2Path(gitCommands);
}
if (FormSettings.GetGlobalDiffToolFromConfig().Equals("kdiff3", StringComparison.CurrentCultureIgnoreCase) && string.IsNullOrEmpty(gitCommands.GetGlobalSetting("difftool.kdiff3.path")))
{
MessageBox.Show("Path to kdiff3 could not be found automatically." + Environment.NewLine + "Please make sure KDiff3 is installed or set path manually.");
tabControl1.SelectTab("GlobalSettingsPage");
return;
}
Rescan_Click(null, null);
}