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:
parent
7c7f15089a
commit
d74485704a
@ -25,6 +25,8 @@ namespace osu.Game.Screens.Multi.Components
|
||||
{
|
||||
currentFilter.BindValueChanged(_ =>
|
||||
{
|
||||
InitialRoomsReceived.Value = false;
|
||||
|
||||
if (IsLoaded)
|
||||
PollImmediately();
|
||||
});
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user