From 92e0e35da55f8a499fda317a1ffcd7d0061b212e Mon Sep 17 00:00:00 2001 From: JT Date: Wed, 26 Jul 2023 12:55:23 -0700 Subject: [PATCH] Use name instead of displayName for install location in one-click --- .../ViewModels/Dialogs/OneClickInstallViewModel.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/StabilityMatrix.Avalonia/ViewModels/Dialogs/OneClickInstallViewModel.cs b/StabilityMatrix.Avalonia/ViewModels/Dialogs/OneClickInstallViewModel.cs index 12ce6b63..e8845091 100644 --- a/StabilityMatrix.Avalonia/ViewModels/Dialogs/OneClickInstallViewModel.cs +++ b/StabilityMatrix.Avalonia/ViewModels/Dialogs/OneClickInstallViewModel.cs @@ -106,7 +106,7 @@ public partial class OneClickInstallViewModel : ViewModelBase 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 @@ public partial class OneClickInstallViewModel : ViewModelBase 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,