1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 16:32:54 +08:00

Remove unnecessary (for now) scheduling

This commit is contained in:
smoogipoo 2019-11-08 16:19:43 +09:00
parent df31acb294
commit a9b4106075

View File

@ -128,15 +128,13 @@ namespace osu.Game.Rulesets.Objects.Drawables
} }
samplesBindable = HitObject.SamplesBindable.GetBoundCopy(); samplesBindable = HitObject.SamplesBindable.GetBoundCopy();
samplesBindable.ItemsAdded += _ => scheduleLoadSamples(); samplesBindable.ItemsAdded += _ => loadSamples();
samplesBindable.ItemsRemoved += _ => scheduleLoadSamples(); samplesBindable.ItemsRemoved += _ => loadSamples();
updateState(ArmedState.Idle, true); updateState(ArmedState.Idle, true);
onDefaultsApplied(); onDefaultsApplied();
} }
private void scheduleLoadSamples() => Scheduler.AddOnce(loadSamples);
private void loadSamples() private void loadSamples()
{ {
var samples = GetSamples().ToArray(); var samples = GetSamples().ToArray();