Use existing BeatmapSetsChanged action

This commit is contained in:
Joseph Madamba 2023-04-10 11:26:18 -07:00
parent 7f5b99c91b
commit c7dea71793
No known key found for this signature in database
GPG Key ID: 8B746C7BDDF0BD76
2 changed files with 1 additions and 7 deletions

View File

@ -49,11 +49,6 @@ namespace osu.Game.Screens.Select
/// </summary>
public Action? BeatmapSetsChanged;
/// <summary>
/// Triggered when the deleted <see cref="BeatmapSets"/> change.
/// </summary>
public Action? DeletedBeatmapSetsChanged;
/// <summary>
/// Triggered after filter conditions have finished being applied to the model hierarchy.
/// </summary>
@ -359,7 +354,7 @@ namespace osu.Game.Screens.Select
if (!Scroll.UserScrolling)
ScrollToSelected(true);
DeletedBeatmapSetsChanged?.Invoke();
BeatmapSetsChanged?.Invoke();
});
public void UpdateBeatmapSet(BeatmapSetInfo beatmapSet) => Schedule(() =>

View File

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