mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 14:57:52 +08:00
Cleanup
This commit is contained in:
parent
dc004910d7
commit
860999ad29
@ -32,18 +32,12 @@ namespace osu.Game.Online.API
|
||||
get => state;
|
||||
private set
|
||||
{
|
||||
APIState oldState = state;
|
||||
APIState newState = value;
|
||||
if (state == value)
|
||||
return;
|
||||
|
||||
state = value;
|
||||
|
||||
if (oldState != newState)
|
||||
{
|
||||
Scheduler.Add(delegate
|
||||
{
|
||||
components.ForEach(c => c.APIStateChanged(this, newState));
|
||||
});
|
||||
}
|
||||
Scheduler.Add(() => components.ForEach(c => c.APIStateChanged(this, value)));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user