mirror of
https://github.com/osukey/osukey.git
synced 2025-07-23 19:30:06 +09:00
Update bindable only if enabled
This commit is contained in:
@ -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;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user