Avoid applying filter in UpdateBeatmapSet flow

This commit is contained in:
Dean Herbert
2022-01-21 12:37:17 +09:00
parent 10056e0dfd
commit 5b24800b0e
2 changed files with 32 additions and 7 deletions

View File

@ -300,16 +300,18 @@ namespace osu.Game.Screens.Select
root.AddChild(newSet);
// only reset scroll position if already near the scroll target.
// without this, during a large beatmap import it is impossible to navigate the carousel.
applyActiveCriteria(false, alwaysResetScrollPosition: false);
// check if we can/need to maintain our current selection.
if (previouslySelectedID != null)
select((CarouselItem)newSet.Beatmaps.FirstOrDefault(b => b.BeatmapInfo.ID == previouslySelectedID) ?? newSet);
itemsCache.Invalidate();
Schedule(() => BeatmapSetsChanged?.Invoke());
Schedule(() =>
{
if (!Scroll.UserScrolling)
ScrollToSelected(true);
BeatmapSetsChanged?.Invoke();
});
});
/// <summary>