1
0
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:
Dean Herbert
2026-01-20 19:20:44 +09:00
Unverified
parent 8c86ff36a2
commit 8860eec9f9
+3 -3
View File
@@ -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)
{