mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 09:22:54 +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;
|
private DependencyContainer dependencies;
|
||||||
|
|
||||||
@ -433,6 +437,8 @@ namespace osu.Game.Screens.Select
|
|||||||
{
|
{
|
||||||
base.OnEntering(last);
|
base.OnEntering(last);
|
||||||
|
|
||||||
|
Carousel.Filter(FilterControl.CreateCriteria(), false);
|
||||||
|
|
||||||
this.FadeInFromZero(250);
|
this.FadeInFromZero(250);
|
||||||
FilterControl.Activate();
|
FilterControl.Activate();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user