1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 04:05:35 +08:00

Update bindable only if enabled

This commit is contained in:
Paul Teng 2018-10-05 07:13:18 -04:00
parent 4ea4a0797f
commit 8264dd49de

View File

@ -76,7 +76,10 @@ namespace osu.Game.Overlays.Toolbar
modeButtons.Add(new ToolbarRulesetButton modeButtons.Add(new ToolbarRulesetButton
{ {
Ruleset = r, Ruleset = r,
Action = delegate { ruleset.Value = r; } Action = delegate
{
if (!ruleset.Disabled) ruleset.Value = r;
}
}); });
} }