Skip to content

Commit

Permalink
fix filtering and disable button
Browse files Browse the repository at this point in the history
  • Loading branch information
martinrrm committed Oct 6, 2022
1 parent 49ecb35 commit d0a0ab0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ protected void AddBlockedVersions(List<NuGetVersion> blockedVersions)
// add all the versions blocked to disable the update button
foreach (var version in blockedVersions)
{
_versions.Add(new DisplayVersion(version, string.Empty, isValidVersion: false));
_versions.Add(new DisplayVersion(version, additionalInfo: null, isValidVersion: false));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ public bool IsSelectedVersionInstalled
{
return SelectedVersion != null
&& InstalledVersion != null
&& ((IsProjectPackageReference && InstalledVersionRange?.OriginalString != null) ? SelectedVersion?.Range?.OriginalString == InstalledVersionRange.OriginalString : true)
&& (IsProjectPackageReference ? SelectedVersion?.Range?.OriginalString == InstalledVersionRange?.OriginalString : true)
&& SelectedVersion.Version == InstalledVersion;
}
}
Expand All @@ -327,7 +327,7 @@ public bool IsInstallorUpdateButtonEnabled
{
get
{
return SelectedVersion != null && !IsSelectedVersionInstalled;
return SelectedVersion != null && !IsSelectedVersionInstalled && !InstalledVersionIsAutoReferenced;
}
}

Expand Down

0 comments on commit d0a0ab0

Please sign in to comment.