diff options
author | Eric Maupin <ermaup@microsoft.com> | 2019-09-24 19:32:16 +0300 |
---|---|---|
committer | Eric Maupin <ermaup@microsoft.com> | 2019-09-24 19:32:16 +0300 |
commit | dbbd3917935045104e224e23e815f2e1da880591 (patch) | |
tree | 0efa409e72b9e3913633de8509f4a8b65425a5c6 | |
parent | e37dd9438838fb294f160f03b8e91172ff5197c2 (diff) |
[mac] Fix value source image not update on default
-rw-r--r-- | Xamarin.PropertyEditing.Mac/Controls/Custom/PropertyButton.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Xamarin.PropertyEditing.Mac/Controls/Custom/PropertyButton.cs b/Xamarin.PropertyEditing.Mac/Controls/Custom/PropertyButton.cs index 989cad7..c621392 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/Custom/PropertyButton.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/Custom/PropertyButton.cs @@ -55,11 +55,11 @@ namespace Xamarin.PropertyEditing.Mac ToolTip = Properties.Resources.Default; OnMouseEntered += (sender, e) => { - ToggleFocusImage (true); + UpdateImage (true); }; OnMouseExited += (sender, e) => { - ToggleFocusImage (); + UpdateImage (); }; OnMouseLeftDown += (sender, e) => { @@ -78,7 +78,7 @@ namespace Xamarin.PropertyEditing.Mac private void AppearanceChanged () { - ToggleFocusImage (); + UpdateImage (); } private readonly IHostResourceProvider hostResources; @@ -170,7 +170,7 @@ namespace Xamarin.PropertyEditing.Mac } } - private void ToggleFocusImage (bool focused = false) + private void UpdateImage (bool focused = false) { if (this.viewModel != null) { @@ -216,7 +216,7 @@ namespace Xamarin.PropertyEditing.Mac case ValueSource.Default: ToolTip = Properties.Resources.Default; - return; + break; case ValueSource.Local: ToolTip = Properties.Resources.Local; @@ -240,7 +240,7 @@ namespace Xamarin.PropertyEditing.Mac break; } - ToggleFocusImage (); + UpdateImage (); } private void OnPropertyChanged (object sender, System.ComponentModel.PropertyChangedEventArgs e) |