mirror of https://github.com/ppy/osu
Add missing `rulesetID` check for global action matching
This commit is contained in:
parent
d06e52505a
commit
d5a1524eb0
|
@ -32,7 +32,7 @@ public IReadOnlyList<string> GetReadableKeyCombinationsFor(GlobalAction globalAc
|
||||||
|
|
||||||
using (var context = realmFactory.GetForRead())
|
using (var context = realmFactory.GetForRead())
|
||||||
{
|
{
|
||||||
foreach (var action in context.Realm.All<RealmKeyBinding>().Where(b => (GlobalAction)b.ActionInt == globalAction))
|
foreach (var action in context.Realm.All<RealmKeyBinding>().Where(b => b.RulesetID == null && (GlobalAction)b.ActionInt == globalAction))
|
||||||
{
|
{
|
||||||
string str = action.KeyCombination.ReadableString();
|
string str = action.KeyCombination.ReadableString();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue