1
0
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:
Dean Herbert 2022-09-26 14:55:23 +09:00
parent 4bd96108c0
commit c4887269f7

View File

@ -58,6 +58,9 @@ namespace osu.Game.Rulesets.Configuration
pendingWrites.Clear();
}
if (!changed.Any())
return true;
realm?.Write(r =>
{
foreach (var c in changed)