mirror of
https://github.com/ppy/osu
synced 2025-01-22 22:03:12 +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();
|
private readonly Cached activeMode = new Cached();
|
||||||
|
|
||||||
protected override void OnRulesetChanged(ValueChangedEvent<RulesetInfo> e)
|
protected override void OnRulesetChanged(ValueChangedEvent<RulesetInfo> e) => activeMode.Invalidate();
|
||||||
{
|
|
||||||
base.OnRulesetChanged(e);
|
|
||||||
|
|
||||||
activeMode.Invalidate();
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void UpdateAfterChildren()
|
protected override void UpdateAfterChildren()
|
||||||
{
|
{
|
||||||
|
@ -15,12 +15,6 @@ namespace osu.Game.Rulesets
|
|||||||
Current.BindValueChanged(OnRulesetChanged);
|
Current.BindValueChanged(OnRulesetChanged);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual void OnRulesetChanged(ValueChangedEvent<RulesetInfo> e)
|
protected abstract void OnRulesetChanged(ValueChangedEvent<RulesetInfo> e);
|
||||||
{
|
|
||||||
if (Current.Disabled)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user