Skip to content

Commit

Permalink
Fixed an issue where packages with multiple versions installed would …
Browse files Browse the repository at this point in the history
…always dowload the icon again
  • Loading branch information
marticliment committed Feb 4, 2025
1 parent 5df3f3c commit c2caa3d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/UniGetUI.Core.IconStore/IconCacheEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using UniGetUI.Core.Classes;
using UniGetUI.Core.Data;
using UniGetUI.Core.Logging;
using UniGetUI.Core.Tools;

namespace UniGetUI.Core.IconEngine
{
Expand Down Expand Up @@ -317,7 +318,7 @@ private static bool ValidateByVersion(CacheableIcon icon, string versionPath)
{
try
{
return File.Exists(versionPath) && File.ReadAllText(versionPath) == icon.Version;
return File.Exists(versionPath) && CoreTools.GetVersionStringAsFloat(File.ReadAllText(versionPath)) >= CoreTools.GetVersionStringAsFloat(icon.Version);
}
catch (Exception e)
{
Expand Down

0 comments on commit c2caa3d

Please sign in to comment.