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