Fixing errors

This commit is contained in:
Swords 2021-05-25 23:54:13 +10:00
parent 9c2dca8229
commit 07a24d2747

View File

@ -41,6 +41,12 @@ namespace osu.Game.Overlays.KeyBinding
AutoSizeAxes = Axes.Y;
Padding = new MarginPadding { Right = SettingsPanel.CONTENT_MARGINS };
KeyBindingRow = new KeyBindingRow(key, bindings.Where(b => ((int)b.Action).Equals((int)key)))
{
AllowMainMouseButtons = ruleset != null,
Defaults = defaults
};
InternalChildren = new Drawable[]
{
new RestoreDefaultValueButton<bool>
@ -53,11 +59,7 @@ namespace osu.Game.Overlays.KeyBinding
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Padding = new MarginPadding { Left = SettingsPanel.CONTENT_MARGINS },
Child = KeyBindingRow = new KeyBindingRow(key, bindings.Where(b => ((int)b.Action).Equals((int)key)))
{
AllowMainMouseButtons = ruleset != null,
Defaults = defaults
}
Child = KeyBindingRow
},
};
}