1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2025-02-28 00:45:50 +00:00

Update UI will still load if no updates are available

This commit is contained in:
Mark McDowall 2015-02-09 17:11:28 -08:00
parent db4eadac40
commit 8bf1d512c2

View file

@ -22,6 +22,8 @@ private List<UpdateResource> GetRecentUpdates()
.OrderByDescending(u => u.Version)
.InjectTo<List<UpdateResource>>();
if (resources.Any())
{
var first = resources.First();
first.Latest = true;
@ -36,6 +38,7 @@ private List<UpdateResource> GetRecentUpdates()
{
installed.Installed = true;
}
}
return resources;
}