mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 06:03:08 +08:00
Cleanup other instance of same function
This commit is contained in:
parent
860999ad29
commit
59d0996c8d
@ -266,20 +266,18 @@ namespace osu.Game.Online.API
|
||||
get => state;
|
||||
private set
|
||||
{
|
||||
APIState oldState = state;
|
||||
APIState newState = value;
|
||||
if (state == value)
|
||||
return;
|
||||
|
||||
APIState oldState = state;
|
||||
state = value;
|
||||
|
||||
if (oldState != newState)
|
||||
log.Add($@"We just went {state}!");
|
||||
Scheduler.Add(delegate
|
||||
{
|
||||
log.Add($@"We just went {newState}!");
|
||||
Scheduler.Add(delegate
|
||||
{
|
||||
components.ForEach(c => c.APIStateChanged(this, newState));
|
||||
OnStateChange?.Invoke(oldState, newState);
|
||||
});
|
||||
}
|
||||
components.ForEach(c => c.APIStateChanged(this, state));
|
||||
OnStateChange?.Invoke(oldState, state);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user