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:
parent
df31acb294
commit
a9b4106075
@ -128,15 +128,13 @@ namespace osu.Game.Rulesets.Objects.Drawables
|
||||
}
|
||||
|
||||
samplesBindable = HitObject.SamplesBindable.GetBoundCopy();
|
||||
samplesBindable.ItemsAdded += _ => scheduleLoadSamples();
|
||||
samplesBindable.ItemsRemoved += _ => scheduleLoadSamples();
|
||||
samplesBindable.ItemsAdded += _ => loadSamples();
|
||||
samplesBindable.ItemsRemoved += _ => loadSamples();
|
||||
|
||||
updateState(ArmedState.Idle, true);
|
||||
onDefaultsApplied();
|
||||
}
|
||||
|
||||
private void scheduleLoadSamples() => Scheduler.AddOnce(loadSamples);
|
||||
|
||||
private void loadSamples()
|
||||
{
|
||||
var samples = GetSamples().ToArray();
|
||||
|
Loading…
Reference in New Issue
Block a user