Run OnSelectionChanged() on each change

This commit is contained in:
Bartłomiej Dach
2020-10-31 12:25:02 +01:00
parent 003994ab75
commit 3322b8a7ea

View File

@ -257,16 +257,15 @@ namespace osu.Game.Screens.Edit.Compose.Components
selectionDetailsText.Text = count > 0 ? count.ToString() : string.Empty; selectionDetailsText.Text = count > 0 ? count.ToString() : string.Empty;
if (count > 0) if (count > 0)
{
Show(); Show();
OnSelectionChanged();
}
else else
Hide(); Hide();
OnSelectionChanged();
} }
/// <summary> /// <summary>
/// Triggered whenever more than one object is selected, on each change. /// Triggered whenever the set of selected objects changes.
/// Should update the selection box's state to match supported operations. /// Should update the selection box's state to match supported operations.
/// </summary> /// </summary>
protected virtual void OnSelectionChanged() protected virtual void OnSelectionChanged()