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:
parent
296420ae08
commit
9c7af98982
@ -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; }
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user