1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 23:12:56 +08:00

Renamed method and made private

This commit is contained in:
ratinfx 2023-11-07 01:02:45 +01:00
parent 0834b79cc7
commit 44f127c8a8

View File

@ -54,7 +54,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
// This makes sure HitObjects will have active Blueprints ready to display // This makes sure HitObjects will have active Blueprints ready to display
// after clicking on an Editor Timestamp/Link // after clicking on an Editor Timestamp/Link
Beatmap.SelectedHitObjects.CollectionChanged += SetHitObjectsAlive; Beatmap.SelectedHitObjects.CollectionChanged += keepHitObjectsAlive;
if (Composer != null) if (Composer != null)
{ {
@ -149,7 +149,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
SelectedItems.AddRange(Beatmap.HitObjects.Except(SelectedItems).ToArray()); 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) if (e == null || e.Action != NotifyCollectionChangedAction.Add || e.NewItems == null)
return; return;
@ -180,7 +180,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
{ {
Beatmap.HitObjectAdded -= AddBlueprintFor; Beatmap.HitObjectAdded -= AddBlueprintFor;
Beatmap.HitObjectRemoved -= RemoveBlueprintFor; Beatmap.HitObjectRemoved -= RemoveBlueprintFor;
Beatmap.SelectedHitObjects.CollectionChanged -= SetHitObjectsAlive; Beatmap.SelectedHitObjects.CollectionChanged -= keepHitObjectsAlive;
} }
usageEventBuffer?.Dispose(); usageEventBuffer?.Dispose();