mirror of https://github.com/ppy/osu
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 @@ protected override bool PerformSave()
|
|||
pendingWrites.Clear();
|
||||
}
|
||||
|
||||
if (!changed.Any())
|
||||
return true;
|
||||
|
||||
realm?.Write(r =>
|
||||
{
|
||||
foreach (var c in changed)
|
||||
|
|
Loading…
Reference in New Issue