From 13bac28e43d22f59c6f2027634b2d1871d7755dc Mon Sep 17 00:00:00 2001 From: Jimmy Reichley Date: Mon, 19 Aug 2024 20:15:51 -0400 Subject: [PATCH] Fix list enumeration --- .../UI/ViewModels/DownloadableContentManagerViewModel.cs | 4 ++-- src/Ryujinx/UI/ViewModels/TitleUpdateViewModel.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Ryujinx/UI/ViewModels/DownloadableContentManagerViewModel.cs b/src/Ryujinx/UI/ViewModels/DownloadableContentManagerViewModel.cs index 18424df51..8206d863b 100644 --- a/src/Ryujinx/UI/ViewModels/DownloadableContentManagerViewModel.cs +++ b/src/Ryujinx/UI/ViewModels/DownloadableContentManagerViewModel.cs @@ -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; } diff --git a/src/Ryujinx/UI/ViewModels/TitleUpdateViewModel.cs b/src/Ryujinx/UI/ViewModels/TitleUpdateViewModel.cs index 516908a6e..108bbbc61 100644 --- a/src/Ryujinx/UI/ViewModels/TitleUpdateViewModel.cs +++ b/src/Ryujinx/UI/ViewModels/TitleUpdateViewModel.cs @@ -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; }