mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 17:43:05 +08:00
Renamed method and made private
This commit is contained in:
parent
0834b79cc7
commit
44f127c8a8
@ -54,7 +54,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
|
||||
// This makes sure HitObjects will have active Blueprints ready to display
|
||||
// after clicking on an Editor Timestamp/Link
|
||||
Beatmap.SelectedHitObjects.CollectionChanged += SetHitObjectsAlive;
|
||||
Beatmap.SelectedHitObjects.CollectionChanged += keepHitObjectsAlive;
|
||||
|
||||
if (Composer != null)
|
||||
{
|
||||
@ -149,7 +149,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
SelectedItems.AddRange(Beatmap.HitObjects.Except(SelectedItems).ToArray());
|
||||
}
|
||||
|
||||
protected void SetHitObjectsAlive(object sender, NotifyCollectionChangedEventArgs e)
|
||||
private void keepHitObjectsAlive(object sender, NotifyCollectionChangedEventArgs e)
|
||||
{
|
||||
if (e == null || e.Action != NotifyCollectionChangedAction.Add || e.NewItems == null)
|
||||
return;
|
||||
@ -180,7 +180,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
{
|
||||
Beatmap.HitObjectAdded -= AddBlueprintFor;
|
||||
Beatmap.HitObjectRemoved -= RemoveBlueprintFor;
|
||||
Beatmap.SelectedHitObjects.CollectionChanged -= SetHitObjectsAlive;
|
||||
Beatmap.SelectedHitObjects.CollectionChanged -= keepHitObjectsAlive;
|
||||
}
|
||||
|
||||
usageEventBuffer?.Dispose();
|
||||
|
Loading…
Reference in New Issue
Block a user