diff --git a/src/Ryujinx.UI.Common/App/ApplicationLibrary.cs b/src/Ryujinx.UI.Common/App/ApplicationLibrary.cs index 66ca95d800..53b3506ca9 100644 --- a/src/Ryujinx.UI.Common/App/ApplicationLibrary.cs +++ b/src/Ryujinx.UI.Common/App/ApplicationLibrary.cs @@ -44,7 +44,7 @@ namespace Ryujinx.UI.App.Common public event EventHandler ApplicationAdded; public event EventHandler ApplicationCountUpdated; - public readonly IObservableCache Applications; + public readonly IObservableCache Applications; public readonly IObservableCache<(TitleUpdateModel TitleUpdate, bool IsSelected), TitleUpdateModel> TitleUpdates; public readonly IObservableCache<(DownloadableContentModel Dlc, bool IsEnabled), DownloadableContentModel> DownloadableContents; @@ -57,7 +57,7 @@ namespace Ryujinx.UI.App.Common private readonly VirtualFileSystem _virtualFileSystem; private readonly IntegrityCheckLevel _checkLevel; private CancellationTokenSource _cancellationToken; - private readonly SourceCache _applications = new(it => (it.Id, it.Path)); + private readonly SourceCache _applications = new(it => it.Id); private readonly SourceCache<(TitleUpdateModel TitleUpdate, bool IsSelected), TitleUpdateModel> _titleUpdates = new(it => it.TitleUpdate); private readonly SourceCache<(DownloadableContentModel Dlc, bool IsEnabled), DownloadableContentModel> _downloadableContents = new(it => it.Dlc); @@ -887,7 +887,7 @@ namespace Ryujinx.UI.App.Common { foreach (var dlc in foundDlcs.Where(it => appIdLookup.Contains(it.TitleIdBase))) { - if (!DownloadableContents.Items.Any(it => it.Dlc == dlc)) + if (!_downloadableContents.Lookup( dlc).HasValue) { _downloadableContents.AddOrUpdate((dlc, true)); SaveDownloadableContentsForGame(dlc.TitleIdBase);