File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1717OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1818SOFTWARE.
1919*/
20-
20+ #define Debug
2121using System ;
2222using System . Collections . Generic ;
2323using 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}
You can’t perform that action at this time.
0 commit comments