mirror of
https://github.com/osukey/osukey.git
synced 2025-08-02 14:17:06 +09:00
Ensure toggles are not instantiated more than once for safety
This commit is contained in:
@ -44,7 +44,7 @@ namespace osu.Game.Rulesets.Osu.Edit
|
||||
|
||||
private readonly Bindable<TernaryState> distanceSnapToggle = new Bindable<TernaryState>();
|
||||
|
||||
protected override IEnumerable<TernaryButton> Toggles => base.Toggles.Concat(new[]
|
||||
protected override IEnumerable<TernaryButton> CreateToggles() => base.CreateToggles().Concat(new[]
|
||||
{
|
||||
new TernaryButton(distanceSnapToggle, "Distance Snap", () => new SpriteIcon { Icon = FontAwesome.Solid.Ruler })
|
||||
});
|
||||
|
Reference in New Issue
Block a user