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:
parent
cafa241ef3
commit
59f2017a13
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user