Skip to content

Commit

Permalink
Use name instead of displayName for install location in one-click
Browse files Browse the repository at this point in the history
  • Loading branch information
mohnjiles committed Jul 26, 2023
1 parent 7b3222a commit 92e0e35
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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,
Expand Down

0 comments on commit 92e0e35

Please sign in to comment.