1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 12:57:36 +08:00

Move BindValueChanged subscriptions to LoadComplete

This commit is contained in:
Bartłomiej Dach 2020-12-30 16:22:11 +01:00
parent cafa241ef3
commit 59f2017a13

View File

@ -27,9 +27,14 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
Text = "Create room";
isConnected = multiplayerClient.IsConnected.GetBoundCopy();
isConnected.BindValueChanged(_ => updateState());
operationInProgress = ongoingOperationTracker.InProgress.GetBoundCopy();
}
protected override void LoadComplete()
{
base.LoadComplete();
isConnected.BindValueChanged(_ => updateState());
operationInProgress.BindValueChanged(_ => updateState(), true);
}