Skip to content

Commit

Permalink
#21
Browse files Browse the repository at this point in the history
  • Loading branch information
sboulema committed Aug 22, 2016
1 parent 6f98a18 commit 744ee40
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions TGit/OutputBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,7 @@ private void okButton_Click(object sender, EventArgs e)
string.Empty, this
);
process.WaitForExit();
if (process.ExitCode == 0)
{
Close();
richTextBox.Clear();
okButton.Enabled = false;
}
okButton.Click += OkButton_Click_Close;
}
else
{
Expand All @@ -70,6 +65,13 @@ private void okButton_Click(object sender, EventArgs e)
}
}

private void OkButton_Click_Close(object sender, EventArgs e)
{
Close();
richTextBox.Clear();
okButton.Enabled = false;
}

private static string FormatCliCommand(string gitCommand, bool appendNextLine = true)
{
return $"echo ^> {Path.GetFileNameWithoutExtension(FileHelper.GetMSysGit())} {gitCommand} && \"{FileHelper.GetMSysGit()}\" {gitCommand}{(appendNextLine ? " && " : string.Empty)}";
Expand Down
2 changes: 1 addition & 1 deletion TGit/source.extension.vsixmanifest
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<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">
<Metadata>
<Identity Id="2eb0e74d-a27d-4c41-bca4-7e9e9befaa18" Version="3.6.4" Language="en-US" Publisher="Samir L. Boulema" />
<Identity Id="2eb0e74d-a27d-4c41-bca4-7e9e9befaa18" Version="3.7" Language="en-US" Publisher="Samir L. Boulema" />
<DisplayName>TGit</DisplayName>
<Description xml:space="preserve">Control TortoiseGit from within Visual Studio</Description>
<MoreInfo>https://github.com/sboulema/TGit</MoreInfo>
Expand Down

0 comments on commit 744ee40

Please sign in to comment.