1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-14 17:17:24 +08:00

Remove weird update usage when 'deselect all' pressed

This commit is contained in:
Cootz 2023-05-07 15:34:01 +03:00
parent 4d235105d1
commit 60bad35145

View File

@ -208,11 +208,12 @@ namespace osu.Game.Overlays.Mods
pendingSelectionOperations.Clear(); pendingSelectionOperations.Clear();
foreach (var button in availableMods.Where(b => b.Active.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) if (Alpha == 0f)
Update(); button.Active.Value = false; //If column is hidden change state manually without any animation
else
pendingSelectionOperations.Enqueue(() => button.Active.Value = false);
}
} }
/// <summary> /// <summary>