mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Refine RealmContext
implementation API
This commit is contained in:
@ -38,8 +38,8 @@ namespace osu.Game.Overlays.Settings.Sections.Input
|
||||
|
||||
List<RealmKeyBinding> bindings;
|
||||
|
||||
using (var usage = realmFactory.GetForRead())
|
||||
bindings = usage.Realm.All<RealmKeyBinding>().Where(b => b.RulesetID == rulesetId && b.Variant == variant).Detach();
|
||||
using (var realm = realmFactory.CreateContext())
|
||||
bindings = realm.All<RealmKeyBinding>().Where(b => b.RulesetID == rulesetId && b.Variant == variant).Detach();
|
||||
|
||||
foreach (var defaultGroup in Defaults.GroupBy(d => d.Action))
|
||||
{
|
||||
|
Reference in New Issue
Block a user