Move Enabled/Disabled state logic to the OverlayRulesetTabItem

This commit is contained in:
Andrei Zavatski
2020-02-03 21:45:10 +03:00
parent ad7f7343d7
commit 4abd9cb89a
2 changed files with 13 additions and 26 deletions

View File

@ -18,8 +18,6 @@ namespace osu.Game.Overlays.BeatmapSet
{
public readonly Bindable<BeatmapSetInfo> BeatmapSet = new Bindable<BeatmapSetInfo>();
public override bool PropagatePositionalInputSubTree => Enabled.Value && !Active.Value && base.PropagatePositionalInputSubTree;
[Resolved]
private OverlayColourProvider colourProvider { get; set; }
@ -73,17 +71,6 @@ namespace osu.Game.Overlays.BeatmapSet
Enabled.Value = beatmapsCount > 0;
}, true);
Enabled.BindValueChanged(enabled =>
{
if (enabled.NewValue)
{
UpdateState();
return;
}
AccentColour = colourProvider.Foreground1;
}, true);
}
}
}