Fix correct mode filter not being applied when first entering song select.

This commit is contained in:
Dean Herbert 2017-04-05 17:27:01 +09:00
parent 8173d01d78
commit 4b1588a21d
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49
2 changed files with 4 additions and 4 deletions

View File

@ -179,11 +179,11 @@ public void SelectRandom()
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;

View File

@ -173,9 +173,9 @@ private void load(OsuColour colours, OsuGame osu)
{
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;