Skip to content

Commit 744ee40

Browse files
committed
1 parent 6f98a18 commit 744ee40

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

TGit/OutputBox.cs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,7 @@ private void okButton_Click(object sender, EventArgs e)
5555
string.Empty, this
5656
);
5757
process.WaitForExit();
58-
if (process.ExitCode == 0)
59-
{
60-
Close();
61-
richTextBox.Clear();
62-
okButton.Enabled = false;
63-
}
58+
okButton.Click += OkButton_Click_Close;
6459
}
6560
else
6661
{
@@ -70,6 +65,13 @@ private void okButton_Click(object sender, EventArgs e)
7065
}
7166
}
7267

68+
private void OkButton_Click_Close(object sender, EventArgs e)
69+
{
70+
Close();
71+
richTextBox.Clear();
72+
okButton.Enabled = false;
73+
}
74+
7375
private static string FormatCliCommand(string gitCommand, bool appendNextLine = true)
7476
{
7577
return $"echo ^> {Path.GetFileNameWithoutExtension(FileHelper.GetMSysGit())} {gitCommand} && \"{FileHelper.GetMSysGit()}\" {gitCommand}{(appendNextLine ? " && " : string.Empty)}";

TGit/source.extension.vsixmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
33
<Metadata>
4-
<Identity Id="2eb0e74d-a27d-4c41-bca4-7e9e9befaa18" Version="3.6.4" Language="en-US" Publisher="Samir L. Boulema" />
4+
<Identity Id="2eb0e74d-a27d-4c41-bca4-7e9e9befaa18" Version="3.7" Language="en-US" Publisher="Samir L. Boulema" />
55
<DisplayName>TGit</DisplayName>
66
<Description xml:space="preserve">Control TortoiseGit from within Visual Studio</Description>
77
<MoreInfo>https://github.com/sboulema/TGit</MoreInfo>

0 commit comments

Comments
 (0)