mirror of
https://github.com/ppy/osu
synced 2025-01-19 12:30:50 +00:00
Fix mod deselect button not working properly when search applied
This commit is contained in:
parent
1ac9d900e1
commit
54757df51f
@ -206,8 +206,12 @@ namespace osu.Game.Overlays.Mods
|
||||
{
|
||||
pendingSelectionOperations.Clear();
|
||||
|
||||
foreach (var button in availableMods.Where(b => b.Active.Value && b.MatchingFilter.Value))
|
||||
foreach (var button in availableMods.Where(b => b.Active.Value))
|
||||
pendingSelectionOperations.Enqueue(() => button.Active.Value = false);
|
||||
|
||||
//If column is hidden trigger selection manually
|
||||
if (Alpha == 0f)
|
||||
Update();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -206,16 +206,6 @@ namespace osu.Game.Overlays.Mods
|
||||
});
|
||||
}
|
||||
|
||||
MainAreaContent.Add(new Container
|
||||
{
|
||||
Anchor = Anchor.TopRight,
|
||||
Origin = Anchor.TopRight,
|
||||
AutoSizeAxes = Axes.X,
|
||||
Height = ModsEffectDisplay.HEIGHT,
|
||||
Margin = new MarginPadding { Horizontal = 100 },
|
||||
Child = new ModSearchContainer()
|
||||
});
|
||||
|
||||
FooterContent.Child = footerButtonFlow = new FillFlowContainer<ShearedButton>
|
||||
{
|
||||
RelativeSizeAxes = Axes.X,
|
||||
|
Loading…
Reference in New Issue
Block a user