Resolve linting issues in ToolbarModeSelector.cs

This commit is contained in:
ocboogie 2018-05-12 17:25:15 -07:00
parent 76800421c4
commit 26f06a9ae1

View File

@ -89,8 +89,8 @@ namespace osu.Game.Overlays.Toolbar
private class RulesetSwitcherInputHandler : Container, IKeyBindingHandler<int>
{
private Bindable<RulesetInfo> ruleset;
private RulesetStore rulesets;
private readonly Bindable<RulesetInfo> ruleset;
private readonly RulesetStore rulesets;
public RulesetSwitcherInputHandler(Bindable<RulesetInfo> ruleset, RulesetStore rulesets)
{
@ -111,7 +111,7 @@ namespace osu.Game.Overlays.Toolbar
[BackgroundDependencyLoader(true)]
private void load(RulesetStore rulesets, OsuGame game)
{
this.rulesetCount = rulesets.AvailableRulesets.Count();
rulesetCount = rulesets.AvailableRulesets.Count();
foreach (var r in rulesets.AvailableRulesets)
{
modeButtons.Add(new ToolbarModeButton