1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-31 15:52:55 +08:00

Merge pull request #28937 from frenzibyte/fix-selection-box-visibility

Fix selection box being initially visible on top-left corner in skin editor
This commit is contained in:
Dean Herbert 2024-07-19 13:58:07 +09:00 committed by GitHub
commit 124bc9c43b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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()