mirror of
https://github.com/ppy/osu
synced 2025-02-07 22:01:59 +00:00
Fix selection box not displaying after pasting a selection in the editor
Closes #12471.
This commit is contained in:
parent
2678089e0b
commit
e76565dbc5
@ -33,10 +33,14 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
/// </summary>
|
||||
public class SelectionHandler : CompositeDrawable, IKeyBindingHandler<PlatformAction>, IHasContextMenu
|
||||
{
|
||||
/// <summary>
|
||||
/// The currently selected blueprints.
|
||||
/// Should be used when operations are dealing directly with the visible blueprints.
|
||||
/// For more general selection operations, use EditorBeatmap.SelectedHitObjects instead.
|
||||
/// </summary>
|
||||
public IEnumerable<SelectionBlueprint> SelectedBlueprints => selectedBlueprints;
|
||||
private readonly List<SelectionBlueprint> selectedBlueprints;
|
||||
|
||||
public int SelectedCount => selectedBlueprints.Count;
|
||||
private readonly List<SelectionBlueprint> selectedBlueprints;
|
||||
|
||||
private Drawable content;
|
||||
|
||||
@ -295,7 +299,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
/// </summary>
|
||||
private void updateVisibility()
|
||||
{
|
||||
int count = selectedBlueprints.Count;
|
||||
int count = EditorBeatmap.SelectedHitObjects.Count;
|
||||
|
||||
selectionDetailsText.Text = count > 0 ? count.ToString() : string.Empty;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user