mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 18:42:56 +08:00
Avoid performing a realm write if there are no changes pending in RulesetConfigManager
This commit is contained in:
parent
4bd96108c0
commit
c4887269f7
@ -58,6 +58,9 @@ namespace osu.Game.Rulesets.Configuration
|
||||
pendingWrites.Clear();
|
||||
}
|
||||
|
||||
if (!changed.Any())
|
||||
return true;
|
||||
|
||||
realm?.Write(r =>
|
||||
{
|
||||
foreach (var c in changed)
|
||||
|
Loading…
Reference in New Issue
Block a user