Skip to content

Commit 3fb8cf8

Browse files
committed
Add if debug code
1 parent 90acb1e commit 3fb8cf8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

GitAutoUpdateGUI/FormMain.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1717
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1818
SOFTWARE.
1919
*/
20-
20+
#define Debug
2121
using System;
2222
using System.Collections.Generic;
2323
using System.Diagnostics;
@@ -92,7 +92,11 @@ private void CheckGitBashPathInWinPath()
9292
checkBoxGitInPath.Checked = true;
9393
checkBoxGitInPath.Text = Translate("GitBash binary path in Windows Path variable");
9494
checkBoxGitInPath.BackColor = Color.LightGreen;
95+
#if Debug
96+
buttonAddGitBinaryToWinPath.Enabled = true;
97+
#else
9598
buttonAddGitBinaryToWinPath.Enabled = false;
99+
#endif
96100
}
97101
else
98102
{
@@ -1443,6 +1447,8 @@ private void buttonAddGitBinaryToWinPath_Click(object sender, EventArgs e)
14431447
{
14441448
// Path = %path% + textBoxGitBashBinariesPath.text minus "git.exe"
14451449
// TODO add implementation code
1450+
var winPath = Environment.GetEnvironmentVariable("Path", EnvironmentVariableTarget.Machine);
1451+
MessageBox.Show("Here is your Windows Path variable: " + winPath);
14461452
}
14471453
}
14481454
}

0 commit comments

Comments
 (0)