From 62f0b56e1d962aa806357feae0cfa06afc703303 Mon Sep 17 00:00:00 2001 From: sciencewhiz Date: Sun, 13 Oct 2024 21:46:25 -0700 Subject: [PATCH] Fix every installation appending to terminal path (#446) --- WPILibInstaller-Avalonia/ViewModels/InstallPageViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WPILibInstaller-Avalonia/ViewModels/InstallPageViewModel.cs b/WPILibInstaller-Avalonia/ViewModels/InstallPageViewModel.cs index a868869..4bcf80d 100644 --- a/WPILibInstaller-Avalonia/ViewModels/InstallPageViewModel.cs +++ b/WPILibInstaller-Avalonia/ViewModels/InstallPageViewModel.cs @@ -354,7 +354,7 @@ private async Task ConfigureVsCodeSettings() else { var binPath = Path.Combine(homePath, "jdk", "bin"); - if (!path.Contains(binPath)) + if (!path.ToString().Contains(binPath)) { path = binPath + path_seperator + path; terminalEnv["PATH"] = path;