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;
}
var dlcsForThisGame = dlcs.Where(it => it.TitleIdBase == _applicationData.IdBase);
if (!dlcsForThisGame.Any())
var dlcsForThisGame = dlcs.Where(it => it.TitleIdBase == _applicationData.IdBase).ToList();
if (dlcsForThisGame.Count == 0)
{
return false;
}

View File

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