Ensure we unselect the previously selected update when auto selcting a new update
This commit is contained in:
parent
dde62f44c7
commit
f3637c5334
@ -986,6 +986,10 @@ namespace Ryujinx.UI.App.Common
|
|||||||
var shouldSelect = !currentlySelected.HasValue ||
|
var shouldSelect = !currentlySelected.HasValue ||
|
||||||
currentlySelected.Value.TitleUpdate.Version < update.Version;
|
currentlySelected.Value.TitleUpdate.Version < update.Version;
|
||||||
_titleUpdates.AddOrUpdate((update, shouldSelect));
|
_titleUpdates.AddOrUpdate((update, shouldSelect));
|
||||||
|
|
||||||
|
if (currentlySelected.HasValue && shouldSelect)
|
||||||
|
_titleUpdates.AddOrUpdate((currentlySelected.Value.TitleUpdate, false));
|
||||||
|
|
||||||
SaveTitleUpdatesForGame(update.TitleIdBase);
|
SaveTitleUpdatesForGame(update.TitleIdBase);
|
||||||
numUpdatesLoaded++;
|
numUpdatesLoaded++;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user