mirror of https://github.com/ppy/osu
change Query to AllRulesets
This commit is contained in:
parent
3eb5267651
commit
9b20da94e7
|
@ -18,7 +18,7 @@ public class KeyBindingStore : DatabaseBackedStore
|
|||
public KeyBindingStore(SQLiteConnection connection, RulesetStore rulesets, Storage storage = null)
|
||||
: base(connection, storage)
|
||||
{
|
||||
foreach (var info in rulesets.Query<RulesetInfo>())
|
||||
foreach (var info in rulesets.AllRulesets)
|
||||
{
|
||||
var ruleset = info.CreateInstance();
|
||||
foreach (var variant in ruleset.AvailableVariants)
|
||||
|
|
|
@ -19,7 +19,7 @@ private void load(RulesetStore rulesets, GlobalKeyBindingInputManager global)
|
|||
{
|
||||
AddSection(new GlobalKeyBindingsSection(global, "Global"));
|
||||
|
||||
foreach (var ruleset in rulesets.Query<RulesetInfo>())
|
||||
foreach (var ruleset in rulesets.AllRulesets)
|
||||
AddSection(new RulesetBindingsSection(ruleset));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue