mirror of
https://github.com/ppy/osu.git
synced 2026-05-27 15:30:44 +08:00
Merge pull request #35239 from bdach/song-select-weirdness
Fix current beatmap set being incorrectly expanded after collapsing group with current selection
This commit is contained in:
@@ -283,5 +283,18 @@ namespace osu.Game.Tests.Visual.SongSelectV2
|
||||
|
||||
CheckHasSelection();
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestManuallyCollapsingCurrentGroupAndOpeningAnother()
|
||||
{
|
||||
SelectNextSet();
|
||||
ToggleGroupCollapse();
|
||||
SelectNextGroup();
|
||||
AddUntilStep("no beatmap panels visible", () => GetVisiblePanels<PanelBeatmap>().Count(), () => Is.Zero);
|
||||
|
||||
SelectNextSet();
|
||||
SelectNextSet();
|
||||
AddUntilStep("no beatmap panels visible", () => GetVisiblePanels<PanelBeatmap>().Count(), () => Is.Zero);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -371,7 +371,7 @@ namespace osu.Game.Screens.SelectV2
|
||||
|
||||
if (userCollapsedGroup)
|
||||
{
|
||||
if (grouping.BeatmapSetsGroupedTogether && CurrentGroupedBeatmap != null)
|
||||
if (grouping.BeatmapSetsGroupedTogether && CurrentGroupedBeatmap != null && CheckModelEquality(group, CurrentGroupedBeatmap.Group))
|
||||
setExpandedSet(new GroupedBeatmapSet(CurrentGroupedBeatmap.Group, CurrentGroupedBeatmap.Beatmap.BeatmapSet!));
|
||||
userCollapsedGroup = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user