mirror of https://github.com/ppy/osu
Fix incorrect event binding
This commit is contained in:
parent
dfa076c169
commit
528ffea38d
|
@ -31,7 +31,7 @@ protected override void LoadComplete()
|
|||
{
|
||||
base.LoadComplete();
|
||||
|
||||
multiplayerClient.RoomUpdated += () => Scheduler.AddOnce(onRoomUpdated);
|
||||
multiplayerClient.RoomUpdated += onRoomUpdated;
|
||||
onRoomUpdated();
|
||||
}
|
||||
|
||||
|
@ -39,7 +39,7 @@ protected override void LoadComplete()
|
|||
private DateTimeOffset countdownReceivedTime;
|
||||
private ScheduledDelegate countdownUpdateDelegate;
|
||||
|
||||
private void onRoomUpdated()
|
||||
private void onRoomUpdated() => Scheduler.AddOnce(() =>
|
||||
{
|
||||
if (countdown == null && room?.Countdown != null)
|
||||
countdownReceivedTime = DateTimeOffset.Now;
|
||||
|
@ -56,7 +56,7 @@ private void onRoomUpdated()
|
|||
|
||||
updateButtonText();
|
||||
updateButtonColour();
|
||||
}
|
||||
});
|
||||
|
||||
private void updateButtonText()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue