Fix list enumeration

This commit is contained in:
Jimmy Reichley 2024-08-19 20:15:51 -04:00
parent cd062ee811
commit 13bac28e43
No known key found for this signature in database
GPG key ID: 67715DC5A329803C
2 changed files with 4 additions and 4 deletions

View file

@ -208,8 +208,8 @@ namespace Ryujinx.Ava.UI.ViewModels
return false; return false;
} }
var dlcsForThisGame = dlcs.Where(it => it.TitleIdBase == _applicationData.IdBase); var dlcsForThisGame = dlcs.Where(it => it.TitleIdBase == _applicationData.IdBase).ToList();
if (!dlcsForThisGame.Any()) if (dlcsForThisGame.Count == 0)
{ {
return false; return false;
} }

View file

@ -146,8 +146,8 @@ namespace Ryujinx.Ava.UI.ViewModels
return false; return false;
} }
var updatesForThisGame = updates.Where(it => it.TitleIdBase == ApplicationData.Id); var updatesForThisGame = updates.Where(it => it.TitleIdBase == ApplicationData.Id).ToList();
if (!updatesForThisGame.Any()) if (updatesForThisGame.Count == 0)
{ {
return false; return false;
} }