mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 20:03:21 +08:00
Replace IConditionalFilterable
with IFilterable
This commit is contained in:
parent
325c114c1c
commit
d400387329
@ -14,7 +14,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Overlays.Mods
|
||||
{
|
||||
public partial class ModPanel : ModSelectPanel, IConditionalFilterable
|
||||
public partial class ModPanel : ModSelectPanel, IFilterable
|
||||
{
|
||||
public Mod Mod => modState.Mod;
|
||||
public override BindableBool Active => modState.Active;
|
||||
@ -110,13 +110,6 @@ namespace osu.Game.Overlays.Mods
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This property is always <see langword="true"/> because it affects search result
|
||||
/// </summary>
|
||||
private readonly BindableBool canBeShown = new BindableBool(true);
|
||||
|
||||
IBindable<bool> IConditionalFilterable.CanBeShown => canBeShown;
|
||||
|
||||
private void updateFilterState()
|
||||
{
|
||||
this.FadeTo(IsValid ? 1 : 0);
|
||||
|
Loading…
Reference in New Issue
Block a user