mirror of
https://github.com/ppy/osu
synced 2025-01-22 13:53:30 +00:00
Remove useless bindable check
This commit is contained in:
parent
94e819578e
commit
35db20a337
@ -92,12 +92,7 @@ namespace osu.Game.Overlays.Toolbar
|
||||
|
||||
private readonly Cached activeMode = new Cached();
|
||||
|
||||
protected override void OnRulesetChanged(ValueChangedEvent<RulesetInfo> e)
|
||||
{
|
||||
base.OnRulesetChanged(e);
|
||||
|
||||
activeMode.Invalidate();
|
||||
}
|
||||
protected override void OnRulesetChanged(ValueChangedEvent<RulesetInfo> e) => activeMode.Invalidate();
|
||||
|
||||
protected override void UpdateAfterChildren()
|
||||
{
|
||||
|
@ -15,12 +15,6 @@ namespace osu.Game.Rulesets
|
||||
Current.BindValueChanged(OnRulesetChanged);
|
||||
}
|
||||
|
||||
protected virtual void OnRulesetChanged(ValueChangedEvent<RulesetInfo> e)
|
||||
{
|
||||
if (Current.Disabled)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
protected abstract void OnRulesetChanged(ValueChangedEvent<RulesetInfo> e);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user