mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Move Enabled/Disabled state logic to the OverlayRulesetTabItem
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user