mirror of
https://github.com/ppy/osu.git
synced 2025-03-05 10:53:10 +08:00
Fix typo in local variable
This commit is contained in:
parent
b471ab07a6
commit
9e94f38091
@ -135,7 +135,7 @@ namespace osu.Game.Screens.Select
|
|||||||
selectedBeatmapSet = null;
|
selectedBeatmapSet = null;
|
||||||
|
|
||||||
var selectedSetBefore = selectedBeatmapSet;
|
var selectedSetBefore = selectedBeatmapSet;
|
||||||
var selectedBetmapBefore = selectedBeatmap;
|
var selectedBeatmapBefore = selectedBeatmap;
|
||||||
|
|
||||||
CarouselRoot newRoot = new CarouselRoot(this);
|
CarouselRoot newRoot = new CarouselRoot(this);
|
||||||
|
|
||||||
@ -170,9 +170,9 @@ namespace osu.Game.Screens.Select
|
|||||||
signalBeatmapsLoaded();
|
signalBeatmapsLoaded();
|
||||||
|
|
||||||
// Restore selection
|
// Restore selection
|
||||||
if (selectedBetmapBefore != null && selectedSetBefore != null && newRoot.BeatmapSetsByID.TryGetValue(selectedSetBefore.BeatmapSet.ID, out var newSelectionCandidates))
|
if (selectedBeatmapBefore != null && selectedSetBefore != null && newRoot.BeatmapSetsByID.TryGetValue(selectedSetBefore.BeatmapSet.ID, out var newSelectionCandidates))
|
||||||
{
|
{
|
||||||
CarouselBeatmap? found = newSelectionCandidates.SelectMany(s => s.Beatmaps).SingleOrDefault(b => b.BeatmapInfo.ID == selectedBetmapBefore.BeatmapInfo.ID);
|
CarouselBeatmap? found = newSelectionCandidates.SelectMany(s => s.Beatmaps).SingleOrDefault(b => b.BeatmapInfo.ID == selectedBeatmapBefore.BeatmapInfo.ID);
|
||||||
|
|
||||||
if (found != null)
|
if (found != null)
|
||||||
found.State.Value = CarouselItemState.Selected;
|
found.State.Value = CarouselItemState.Selected;
|
||||||
|
Loading…
Reference in New Issue
Block a user