mirror of
https://github.com/ppy/osu.git
synced 2026-05-19 16:20:14 +08:00
Handle expand set logic locally rather than calling HandleItemSelected
This avoids the implicit group expansion happening that the added code was attempting to fix.
This commit is contained in:
@@ -32,7 +32,6 @@ using osu.Game.Online.API;
|
||||
using osu.Game.Rulesets;
|
||||
using osu.Game.Scoring;
|
||||
using osu.Game.Screens.Select;
|
||||
using osu.Game.Screens.Select.Filter;
|
||||
using Realms;
|
||||
|
||||
namespace osu.Game.Screens.SelectV2
|
||||
@@ -495,8 +494,9 @@ namespace osu.Game.Screens.SelectV2
|
||||
|
||||
if (groupingRemainsOff || groupStillValid)
|
||||
{
|
||||
// Only update the visual state of the selected item.
|
||||
HandleItemSelected(currentGroupedBeatmap);
|
||||
// Update the visual state of the selected item if it should still be expanded post filter.
|
||||
if (currentGroupedBeatmap != null && currentGroupedBeatmap.Group == groupForReselection)
|
||||
setExpandedSet(new GroupedBeatmapSet(currentGroupedBeatmap.Group, currentGroupedBeatmap.Beatmap.BeatmapSet!));
|
||||
}
|
||||
else if (currentGroupedBeatmap != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user