Fix key bindings switching order at random on consecutive "reset to defaults"

This commit is contained in:
Dean Herbert 2020-07-08 15:24:26 +09:00
parent 2afc436a30
commit 6c8b6f05f8
1 changed files with 3 additions and 0 deletions

View File

@ -55,6 +55,9 @@ private void insertDefaults(IEnumerable<KeyBinding> defaults, int? rulesetId = n
RulesetID = rulesetId, RulesetID = rulesetId,
Variant = variant Variant = variant
}); });
// required to ensure stable insert order (https://github.com/dotnet/efcore/issues/11686)
usage.Context.SaveChanges();
} }
} }
} }