mirror of https://github.com/ppy/osu
Remove weird update usage when 'deselect all' pressed
This commit is contained in:
parent
4d235105d1
commit
60bad35145
|
@ -208,11 +208,12 @@ public void DeselectAll()
|
|||
pendingSelectionOperations.Clear();
|
||||
|
||||
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();
|
||||
{
|
||||
if (Alpha == 0f)
|
||||
button.Active.Value = false; //If column is hidden change state manually without any animation
|
||||
else
|
||||
pendingSelectionOperations.Enqueue(() => button.Active.Value = false);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in New Issue