Fix selection box initialy visible despite no items selected

This commit is contained in:
Salman Ahmed 2024-07-19 03:00:44 +03:00
parent 868604ca04
commit a570949459

View File

@ -85,10 +85,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
SelectionBox = CreateSelectionBox(),
});
SelectedItems.CollectionChanged += (_, _) =>
{
Scheduler.AddOnce(updateVisibility);
};
SelectedItems.BindCollectionChanged((_, _) => Scheduler.AddOnce(updateVisibility), true);
}
public SelectionBox CreateSelectionBox()