mirror of
https://github.com/ppy/osu
synced 2024-12-09 08:30:36 +00: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