Skip to content

Commit

Permalink
Fix remaining column operations being coupled to drawables
Browse files Browse the repository at this point in the history
  • Loading branch information
bdach committed May 11, 2022
1 parent b5a9f13 commit 1c01663
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions osu.Game/Overlays/Mods/ModColumn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,8 @@ private void updateState()

if (toggleAllCheckbox != null && !SelectionAnimationRunning)
{
toggleAllCheckbox.Alpha = panelFlow.Any(panel => !panel.Filtered.Value) ? 1 : 0;
toggleAllCheckbox.Current.Value = panelFlow.Where(panel => !panel.Filtered.Value).All(panel => panel.Active.Value);
toggleAllCheckbox.Alpha = availableMods.Any(panel => !panel.Filtered.Value) ? 1 : 0;
toggleAllCheckbox.Current.Value = availableMods.Where(panel => !panel.Filtered.Value).All(panel => panel.Active.Value);
}
}

Expand Down Expand Up @@ -342,7 +342,7 @@ public void SelectAll()
{
pendingSelectionOperations.Clear();

foreach (var button in panelFlow.Where(b => !b.Active.Value && !b.Filtered.Value))
foreach (var button in availableMods.Where(b => !b.Active.Value && !b.Filtered.Value))
pendingSelectionOperations.Enqueue(() => button.Active.Value = true);
}

Expand All @@ -353,7 +353,7 @@ public void DeselectAll()
{
pendingSelectionOperations.Clear();

foreach (var button in panelFlow.Where(b => b.Active.Value && !b.Filtered.Value))
foreach (var button in availableMods.Where(b => b.Active.Value && !b.Filtered.Value))
pendingSelectionOperations.Enqueue(() => button.Active.Value = false);
}

Expand Down

0 comments on commit 1c01663

Please sign in to comment.