From ea2eded6e1c0775619d0e30bd4d6c134a4648c60 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Mon, 2 Jun 2025 18:10:55 +0900 Subject: [PATCH] Fix multiple incorrect behaviours due to reliance on dictionary init state --- osu.Game/Screens/SelectV2/BeatmapCarousel.cs | 4 +++- osu.Game/Screens/SelectV2/BeatmapCarouselFilterGrouping.cs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/osu.Game/Screens/SelectV2/BeatmapCarousel.cs b/osu.Game/Screens/SelectV2/BeatmapCarousel.cs index c2dd4302e6..740ed14e1e 100644 --- a/osu.Game/Screens/SelectV2/BeatmapCarousel.cs +++ b/osu.Game/Screens/SelectV2/BeatmapCarousel.cs @@ -255,7 +255,9 @@ namespace osu.Game.Screens.SelectV2 if (containingGroup != null) setExpandedGroup(containingGroup); - setExpandedSet(beatmapInfo); + + if (grouping.BeatmapSetsGroupedTogether) + setExpandedSet(beatmapInfo); break; } } diff --git a/osu.Game/Screens/SelectV2/BeatmapCarouselFilterGrouping.cs b/osu.Game/Screens/SelectV2/BeatmapCarouselFilterGrouping.cs index 926349d6cc..c68f377fbb 100644 --- a/osu.Game/Screens/SelectV2/BeatmapCarouselFilterGrouping.cs +++ b/osu.Game/Screens/SelectV2/BeatmapCarouselFilterGrouping.cs @@ -117,7 +117,7 @@ namespace osu.Game.Screens.SelectV2 currentGroupItems?.Add(i); currentSetItems?.Add(i); - i.IsVisible = i.Model is GroupDefinition || (group == null && (i.Model is BeatmapSetInfo || currentSetItems == null)); + i.IsVisible = i.Model is GroupDefinition || (group == null && (i.Model is BeatmapSetInfo || !BeatmapSetsGroupedTogether)); } }