Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Removed unnecessary SendClicked logic in macOS RadioButtonRenderer (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jsuarezruiz authored Nov 19, 2020
1 parent 0259f4e commit 990cfd5
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions Xamarin.Forms.Platform.MacOS/Renderers/RadioButtonRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ public override void MouseDown(NSEvent theEvent)

protected override void Dispose(bool disposing)
{
if (Control != null)
Control.Activated -= OnButtonActivated;

ObserveStateChange(false);

base.Dispose(disposing);
Expand All @@ -47,8 +44,6 @@ protected override void OnElementChanged(ElementChangedEventArgs<RadioButton> e)
btn.SetButtonType(NSButtonType.Radio);
SetNativeControl(btn);
ObserveStateChange(true);

Control.Activated += OnButtonActivated;
}

UpdateContent();
Expand Down Expand Up @@ -77,11 +72,6 @@ protected override void OnElementPropertyChanged(object sender, PropertyChangedE
UpdateCheck();
}

void OnButtonActivated(object sender, EventArgs eventArgs)
{
((IButtonController)Element)?.SendClicked();
}

void UpdateBackgroundVisibility()
{
var model = Element;
Expand Down

0 comments on commit 990cfd5

Please sign in to comment.