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
1 changed files with 7 additions and 2 deletions

View File

@ -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);
}