Fix mod deselect button not working properly when search applied

This commit is contained in:
Cootz 2023-05-05 09:31:27 +03:00
parent 1ac9d900e1
commit 54757df51f
2 changed files with 5 additions and 11 deletions

View File

@ -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>

View File

@ -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,