Skip to content

Commit

Permalink
Do not serialize the entire package for this. Call InstallationOption…
Browse files Browse the repository at this point in the history
…s.FromPackage, that will leverage internal caches
  • Loading branch information
marticliment committed Jan 7, 2025
1 parent 946e761 commit de20f1c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using UniGetUI.Core.SettingsEngine;
using UniGetUI.Interface.Enums;
using UniGetUI.PackageEngine.Interfaces;
using UniGetUI.PackageEngine.PackageClasses;

namespace UniGetUI.PackageEngine.PackageLoader
{
Expand Down Expand Up @@ -31,7 +32,7 @@ protected override async Task<bool> IsPackageValid(IPackage package)
IgnoredPackages[package.Id] = package;
return false;
}
if (package.AsSerializable().InstallationOptions.SkipMinorUpdates && package.IsUpdateMinor()) return false;
if (InstallationOptions.FromPackage(package).SkipMinorUpdates && package.IsUpdateMinor()) return false;
if (package.NewerVersionIsInstalled()) return false;
return true;
}
Expand Down

0 comments on commit de20f1c

Please sign in to comment.