mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 23:22:55 +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)
|
||||
{
|
||||
if (!IsLoaded) return;
|
||||
|
||||
if (newCriteria != null)
|
||||
criteria = newCriteria;
|
||||
|
||||
if (!IsLoaded) return;
|
||||
|
||||
Action perform = delegate
|
||||
{
|
||||
filterTask = null;
|
||||
|
@ -173,9 +173,9 @@ namespace osu.Game.Screens.Select
|
||||
{
|
||||
sortTabs.AccentColour = colours.GreenLight;
|
||||
|
||||
if (osu != null)
|
||||
playMode.BindTo(osu.PlayMode);
|
||||
if (osu != null) playMode.BindTo(osu.PlayMode);
|
||||
playMode.ValueChanged += val => FilterChanged?.Invoke(CreateCriteria());
|
||||
playMode.TriggerChange();
|
||||
}
|
||||
|
||||
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args) => true;
|
||||
|
Loading…
Reference in New Issue
Block a user