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
1 changed files with 3 additions and 0 deletions

View File

@ -58,6 +58,9 @@ protected override bool PerformSave()
pendingWrites.Clear();
}
if (!changed.Any())
return true;
realm?.Write(r =>
{
foreach (var c in changed)