diff --git a/StabilityMatrix.Avalonia/ViewModels/Dialogs/OneClickInstallViewModel.cs b/StabilityMatrix.Avalonia/ViewModels/Dialogs/OneClickInstallViewModel.cs index 12ce6b63e..e88450918 100644 --- a/StabilityMatrix.Avalonia/ViewModels/Dialogs/OneClickInstallViewModel.cs +++ b/StabilityMatrix.Avalonia/ViewModels/Dialogs/OneClickInstallViewModel.cs @@ -106,7 +106,7 @@ private async Task DoInstall() SubHeaderText = "Getting latest version..."; var latestVersion = await SelectedPackage.GetLatestVersion(); SelectedPackage.InstallLocation = - Path.Combine(libraryDir, "Packages", SelectedPackage.DisplayName); + Path.Combine(libraryDir, "Packages", SelectedPackage.Name); SelectedPackage.ConsoleOutput += (_, output) => SubSubHeaderText = output.Text; await DownloadPackage(latestVersion); @@ -118,7 +118,7 @@ private async Task DoInstall() var installedPackage = new InstalledPackage { DisplayName = SelectedPackage.DisplayName, - LibraryPath = Path.Combine("Packages", SelectedPackage.DisplayName), + LibraryPath = Path.Combine("Packages", SelectedPackage.Name), Id = Guid.NewGuid(), PackageName = SelectedPackage.Name, PackageVersion = latestVersion,