Răsfoiți Sursa

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

TheToid 1 an în urmă
părinte
comite
dc3267f152
1 a modificat fișierele cu 4 adăugiri și 0 ștergeri
  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++;