mirror of https://github.com/ppy/osu
Move BindValueChanged subscriptions to LoadComplete
This commit is contained in:
parent
cafa241ef3
commit
59f2017a13
|
@ -27,9 +27,14 @@ private void load()
|
|||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue