mirror of
https://github.com/ppy/osu.git
synced 2025-02-21 19:32:55 +08:00
Rename {joiningRoom -> operationInProgress}
This commit is contained in:
parent
dad5dd3667
commit
c2eeb822b8
@ -29,7 +29,7 @@ namespace osu.Game.Screens.OnlinePlay.Lounge
|
|||||||
protected override UserActivity InitialActivity => new UserActivity.SearchingForLobby();
|
protected override UserActivity InitialActivity => new UserActivity.SearchingForLobby();
|
||||||
|
|
||||||
private readonly IBindable<bool> initialRoomsReceived = new Bindable<bool>();
|
private readonly IBindable<bool> initialRoomsReceived = new Bindable<bool>();
|
||||||
private readonly IBindable<bool> joiningRoom = new Bindable<bool>();
|
private readonly IBindable<bool> operationInProgress = new Bindable<bool>();
|
||||||
|
|
||||||
private FilterControl filter;
|
private FilterControl filter;
|
||||||
private Container content;
|
private Container content;
|
||||||
@ -110,8 +110,8 @@ namespace osu.Game.Screens.OnlinePlay.Lounge
|
|||||||
|
|
||||||
if (ongoingOperationTracker != null)
|
if (ongoingOperationTracker != null)
|
||||||
{
|
{
|
||||||
joiningRoom.BindTo(ongoingOperationTracker.InProgress);
|
operationInProgress.BindTo(ongoingOperationTracker.InProgress);
|
||||||
joiningRoom.BindValueChanged(_ => updateLoadingLayer(), true);
|
operationInProgress.BindValueChanged(_ => updateLoadingLayer(), true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -187,7 +187,7 @@ namespace osu.Game.Screens.OnlinePlay.Lounge
|
|||||||
|
|
||||||
private void updateLoadingLayer()
|
private void updateLoadingLayer()
|
||||||
{
|
{
|
||||||
if (joiningRoom.Value || !initialRoomsReceived.Value)
|
if (operationInProgress.Value || !initialRoomsReceived.Value)
|
||||||
loadingLayer.Show();
|
loadingLayer.Show();
|
||||||
else
|
else
|
||||||
loadingLayer.Hide();
|
loadingLayer.Hide();
|
||||||
|
Loading…
Reference in New Issue
Block a user