1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 15:07:44 +08:00

Fix alpha cross-talk causing settings to potentially not filter when they should

This commit is contained in:
Dean Herbert 2022-04-14 20:06:15 +09:00
parent 296420ae08
commit 9c7af98982
2 changed files with 6 additions and 8 deletions

View File

@ -100,10 +100,9 @@ namespace osu.Game.Overlays.Settings
public IEnumerable<string> Keywords { get; set; }
public bool MatchingFilter
{
set => Alpha = value ? 1 : 0;
}
public override bool IsPresent => MatchingFilter;
public bool MatchingFilter { get; set; }
public bool FilteringActive { get; set; }

View File

@ -21,6 +21,8 @@ namespace osu.Game.Overlays.Settings
protected FillFlowContainer FlowContent;
protected override Container<Drawable> Content => FlowContent;
public override bool IsPresent => MatchingFilter;
private IBindable<SettingsSection> selectedSection;
private OsuSpriteText header;
@ -36,10 +38,7 @@ namespace osu.Game.Overlays.Settings
private const int header_size = 24;
private const int border_size = 4;
public bool MatchingFilter
{
set => this.FadeTo(value ? 1 : 0);
}
public bool MatchingFilter { get; set; }
public bool FilteringActive { get; set; }