Parcourir la source

Ensure we unselect the previously selected update when auto selcting a new update (#30)

TheToid il y a 1 an
Parent
commit
dc3267f152
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      src/Ryujinx.UI.Common/App/ApplicationLibrary.cs

+ 4 - 0
src/Ryujinx.UI.Common/App/ApplicationLibrary.cs

@@ -986,6 +986,10 @@ namespace Ryujinx.UI.App.Common
                                 var shouldSelect = !currentlySelected.HasValue ||
                                                    currentlySelected.Value.TitleUpdate.Version < update.Version;
                                 _titleUpdates.AddOrUpdate((update, shouldSelect));
+
+                                if (currentlySelected.HasValue && shouldSelect)
+                                    _titleUpdates.AddOrUpdate((currentlySelected.Value.TitleUpdate, false));
+
                                 SaveTitleUpdatesForGame(update.TitleIdBase);
                                 numUpdatesLoaded++;