mirror of
https://github.com/ppy/osu.git
synced 2025-02-07 19:02:58 +08:00
Only show loading when doing a user triggered filter
This commit is contained in:
parent
6ac2dbc818
commit
d526835627
@ -6,7 +6,6 @@ using System.Collections.Generic;
|
|||||||
using System.Collections.Specialized;
|
using System.Collections.Specialized;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
@ -14,7 +13,6 @@ using osu.Framework.Graphics.Pooling;
|
|||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
using osu.Game.Database;
|
using osu.Game.Database;
|
||||||
using osu.Game.Graphics.UserInterface;
|
using osu.Game.Graphics.UserInterface;
|
||||||
using osu.Game.Online.Multiplayer;
|
|
||||||
using osu.Game.Screens.Select;
|
using osu.Game.Screens.Select;
|
||||||
|
|
||||||
namespace osu.Game.Screens.SelectV2
|
namespace osu.Game.Screens.SelectV2
|
||||||
@ -93,14 +91,8 @@ namespace osu.Game.Screens.SelectV2
|
|||||||
public void Filter(FilterCriteria criteria)
|
public void Filter(FilterCriteria criteria)
|
||||||
{
|
{
|
||||||
Criteria = criteria;
|
Criteria = criteria;
|
||||||
FilterAsync().FireAndForget();
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override async Task FilterAsync()
|
|
||||||
{
|
|
||||||
loading.Show();
|
loading.Show();
|
||||||
await base.FilterAsync().ConfigureAwait(true);
|
FilterAsync().ContinueWith(_ => Schedule(() => loading.Hide()));
|
||||||
loading.Hide();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user