From eb83ad326f068c20c9abee22d510cd1a831d6f5b Mon Sep 17 00:00:00 2001 From: Giuseppe Lippolis Date: Wed, 7 Jun 2023 17:04:39 +0200 Subject: [PATCH] fix: Spelling --- .../Diagnostics/Controls/BrushEditor.axaml.cs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/Avalonia.Diagnostics/Diagnostics/Controls/BrushEditor.axaml.cs b/src/Avalonia.Diagnostics/Diagnostics/Controls/BrushEditor.axaml.cs index 5090279ae1..268e42cff3 100644 --- a/src/Avalonia.Diagnostics/Diagnostics/Controls/BrushEditor.axaml.cs +++ b/src/Avalonia.Diagnostics/Diagnostics/Controls/BrushEditor.axaml.cs @@ -14,13 +14,12 @@ namespace Avalonia.Diagnostics.Controls partial class BrushEditor : TemplatedControl { private readonly EventHandler clearHandler; - private Button? _cleraButton = default; + private Button? _clearButton = default; private readonly ColorView _colorView = new() { HexInputAlphaPosition = AlphaComponentPosition.Leading, // Always match XAML }; - public BrushEditor() { FlyoutBase.SetAttachedFlyout(this, new Flyout { Content = _colorView }); @@ -33,12 +32,12 @@ namespace Avalonia.Diagnostics.Controls protected override void OnApplyTemplate(TemplateAppliedEventArgs e) { base.OnApplyTemplate(e); - if (_cleraButton is not null) + if (_clearButton is not null) { - _cleraButton.Click -= clearHandler; + _clearButton.Click -= clearHandler; } - _cleraButton = e.NameScope.Find