mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 23:22:55 +08:00
Move initial filter to run on entering
This commit is contained in:
parent
e0f59d8e24
commit
5b416eb7ba
@ -260,7 +260,11 @@ namespace osu.Game.Screens.Select
|
||||
}
|
||||
}
|
||||
|
||||
protected virtual void ApplyFilterToCarousel(FilterCriteria criteria) => Carousel.Filter(criteria);
|
||||
protected virtual void ApplyFilterToCarousel(FilterCriteria criteria)
|
||||
{
|
||||
if (this.IsCurrentScreen())
|
||||
Carousel.Filter(criteria);
|
||||
}
|
||||
|
||||
private DependencyContainer dependencies;
|
||||
|
||||
@ -433,6 +437,8 @@ namespace osu.Game.Screens.Select
|
||||
{
|
||||
base.OnEntering(last);
|
||||
|
||||
Carousel.Filter(FilterControl.CreateCriteria(), false);
|
||||
|
||||
this.FadeInFromZero(250);
|
||||
FilterControl.Activate();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user