mirror of
https://github.com/ppy/osu.git
synced 2026-05-26 20:50:41 +08:00
Fix carousel potentially selecting filtered diff when clicking set panel
This commit is contained in:
@@ -181,8 +181,9 @@ namespace osu.Game.Screens.SelectV2
|
||||
return;
|
||||
|
||||
case BeatmapSetInfo setInfo:
|
||||
// Selecting a set isn't valid – let's re-select the first difficulty.
|
||||
CurrentSelection = setInfo.Beatmaps.First();
|
||||
// Selecting a set isn't valid – let's re-select the first visible difficulty.
|
||||
if (grouping.SetItems.TryGetValue(setInfo, out var items))
|
||||
CurrentSelection = items.ElementAt(1).Model;
|
||||
return;
|
||||
|
||||
case BeatmapInfo beatmapInfo:
|
||||
|
||||
Reference in New Issue
Block a user