1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-13 18:07:25 +08:00

Fix a few of silly issues

This commit is contained in:
Dean Herbert 2023-12-18 22:24:57 +09:00
parent 25df42630e
commit 25e3a8e82e
No known key found for this signature in database
3 changed files with 5 additions and 2 deletions

View File

@ -168,7 +168,10 @@ namespace osu.Game.Screens.Select
applyActiveCriteria(false);
if (loadedTestBeatmaps)
{
invalidateAfterChange();
BeatmapSetsLoaded = true;
}
// Restore selection
if (selectedBeatmapBefore != null && newRoot.BeatmapSetsByID.TryGetValue(selectedBeatmapBefore.BeatmapSet!.ID, out var newSelectionCandidates))

View File

@ -62,7 +62,7 @@ namespace osu.Game.Screens.Select.Carousel
}
if (!i.Filtered.Value)
TotalItemsNotFiltered--;
TotalItemsNotFiltered++;
}
public CarouselGroup(List<CarouselItem>? items = null)

View File

@ -162,7 +162,7 @@ namespace osu.Game.Screens.Select
BleedBottom = Footer.HEIGHT,
SelectionChanged = updateSelectedBeatmap,
BeatmapSetsChanged = carouselBeatmapsLoaded,
FilterApplied = () => Scheduler.Add(updateVisibleBeatmapCount),
FilterApplied = () => Scheduler.AddOnce(updateVisibleBeatmapCount),
GetRecommendedBeatmap = s => recommender?.GetRecommendedBeatmap(s),
}, c => carouselContainer.Child = c);