Skip to content

Commit

Permalink
Ensure we unselect the previously selected update when auto selcting …
Browse files Browse the repository at this point in the history
…a new update (#30)
  • Loading branch information
amurgshere authored Oct 22, 2024
1 parent f76a97c commit dc3267f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Ryujinx.UI.Common/App/ApplicationLibrary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,10 @@ public int AutoLoadTitleUpdates(List<string> appDirs)
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++;

Expand Down

0 comments on commit dc3267f

Please sign in to comment.