mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 09:22:54 +08:00
Fix correct mode filter not being applied when first entering song select.
This commit is contained in:
parent
8173d01d78
commit
4b1588a21d
@ -179,11 +179,11 @@ namespace osu.Game.Screens.Select
|
|||||||
|
|
||||||
public void Filter(FilterCriteria newCriteria = null, bool debounce = true)
|
public void Filter(FilterCriteria newCriteria = null, bool debounce = true)
|
||||||
{
|
{
|
||||||
if (!IsLoaded) return;
|
|
||||||
|
|
||||||
if (newCriteria != null)
|
if (newCriteria != null)
|
||||||
criteria = newCriteria;
|
criteria = newCriteria;
|
||||||
|
|
||||||
|
if (!IsLoaded) return;
|
||||||
|
|
||||||
Action perform = delegate
|
Action perform = delegate
|
||||||
{
|
{
|
||||||
filterTask = null;
|
filterTask = null;
|
||||||
|
@ -173,9 +173,9 @@ namespace osu.Game.Screens.Select
|
|||||||
{
|
{
|
||||||
sortTabs.AccentColour = colours.GreenLight;
|
sortTabs.AccentColour = colours.GreenLight;
|
||||||
|
|
||||||
if (osu != null)
|
if (osu != null) playMode.BindTo(osu.PlayMode);
|
||||||
playMode.BindTo(osu.PlayMode);
|
|
||||||
playMode.ValueChanged += val => FilterChanged?.Invoke(CreateCriteria());
|
playMode.ValueChanged += val => FilterChanged?.Invoke(CreateCriteria());
|
||||||
|
playMode.TriggerChange();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args) => true;
|
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args) => true;
|
||||||
|
Loading…
Reference in New Issue
Block a user