mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 06:03:08 +08:00
Limit metadata updates to once per frame
This commit is contained in:
parent
efa3c3b757
commit
de186f67e0
@ -87,7 +87,7 @@ namespace osu.Game.Screens.Edit.Setup
|
||||
target.Current.Value = value;
|
||||
|
||||
updateReadOnlyState();
|
||||
updateMetadata();
|
||||
Scheduler.AddOnce(updateMetadata);
|
||||
}
|
||||
|
||||
private void updateReadOnlyState()
|
||||
@ -102,7 +102,7 @@ namespace osu.Game.Screens.Edit.Setup
|
||||
|
||||
// for now, update on commit rather than making BeatmapMetadata bindables.
|
||||
// after switching database engines we can reconsider if switching to bindables is a good direction.
|
||||
updateMetadata();
|
||||
Scheduler.AddOnce(updateMetadata);
|
||||
}
|
||||
|
||||
private void updateMetadata()
|
||||
|
Loading…
Reference in New Issue
Block a user