Update existing usages to use the main realm context where applicable

This commit is contained in:
Dean Herbert
2021-01-13 17:35:00 +09:00
parent 542f535247
commit 9d744d629f
6 changed files with 8 additions and 19 deletions

View File

@ -165,8 +165,7 @@ namespace osu.Game.Overlays.Toolbar
if (Hotkey != null)
{
var realm = realmFactory.Get();
realmKeyBinding = realm.All<RealmKeyBinding>().FirstOrDefault(rkb => rkb.RulesetID == null && rkb.Action == (int)Hotkey.Value);
realmKeyBinding = realmFactory.Context.All<RealmKeyBinding>().FirstOrDefault(rkb => rkb.RulesetID == null && rkb.Action == (int)Hotkey.Value);
if (realmKeyBinding != null)
{