1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:07:52 +08:00

Reset intial rooms received on filter change

This commit is contained in:
smoogipoo 2020-12-20 17:46:45 +09:00
parent 7c7f15089a
commit d74485704a
2 changed files with 4 additions and 3 deletions

View File

@ -25,6 +25,8 @@ namespace osu.Game.Screens.Multi.Components
{
currentFilter.BindValueChanged(_ =>
{
InitialRoomsReceived.Value = false;
if (IsLoaded)
PollImmediately();
});

View File

@ -21,8 +21,7 @@ namespace osu.Game.Screens.Multi.Components
/// </summary>
public new readonly Bindable<double> TimeBetweenPolls = new Bindable<double>();
public IBindable<bool> InitialRoomsReceived => initialRoomsReceived;
private readonly Bindable<bool> initialRoomsReceived = new Bindable<bool>();
public readonly Bindable<bool> InitialRoomsReceived = new Bindable<bool>();
[Resolved]
protected IAPIProvider API { get; private set; }
@ -34,7 +33,7 @@ namespace osu.Game.Screens.Multi.Components
protected void NotifyRoomsReceived(List<Room> rooms)
{
initialRoomsReceived.Value = true;
InitialRoomsReceived.Value = true;
RoomsReceived?.Invoke(rooms);
}
}