Skip to content

Commit

Permalink
fix DrawPackagesSplittedByManuallyInstalled
Browse files Browse the repository at this point in the history
  • Loading branch information
JoC0de committed Dec 16, 2023
1 parent 93784ca commit e178a5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NuGetForUnity/Editor/Ui/NugetWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ private void DrawPackagesSplittedByManuallyInstalled(List<INugetPackage> package
EditorGUI.LabelField(rectangle, " Installed packages", headerStyle);
if (packages.Exists(package => package.IsManuallyInstalled))
{
DrawPackages(packages.TakeWhile(package => package.IsManuallyInstalled), true);
DrawPackages(packages.Where(package => package.IsManuallyInstalled), true);
}
else
{
Expand All @@ -658,7 +658,7 @@ private void DrawPackagesSplittedByManuallyInstalled(List<INugetPackage> package
showImplicitlyInstalled = EditorGUI.Foldout(rectangle, showImplicitlyInstalled, "Implicitly installed packages", true, GetFoldoutStyle());
if (showImplicitlyInstalled)
{
DrawPackages(packages.SkipWhile(package => package.IsManuallyInstalled), true);
DrawPackages(packages.Where(package => !package.IsManuallyInstalled), true);
}
}

Expand Down

0 comments on commit e178a5d

Please sign in to comment.