diff options
author | Bertrand Le Roy <beleroy@microsoft.com> | 2018-09-26 01:23:39 +0300 |
---|---|---|
committer | Bertrand Le Roy <beleroy@microsoft.com> | 2018-09-26 01:23:39 +0300 |
commit | d7beecb175793c2edce59a082508b76d321449b3 (patch) | |
tree | 6d90570c4295dda21a79b422f7139353bcb6faab /Xamarin.PropertyEditing.Mac/Controls | |
parent | 3a99673a4082de39bedc5018857d5f52fea66e1a (diff) |
Don't notify changes for any value change of a spin editor, to avoid premature commits to last color. Fixes #407 and #400.
Diffstat (limited to 'Xamarin.PropertyEditing.Mac/Controls')
-rw-r--r-- | Xamarin.PropertyEditing.Mac/Controls/Custom/NumericSpinEditor.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Xamarin.PropertyEditing.Mac/Controls/Custom/NumericSpinEditor.cs b/Xamarin.PropertyEditing.Mac/Controls/Custom/NumericSpinEditor.cs index 560a69b..c36898e 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/Custom/NumericSpinEditor.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/Custom/NumericSpinEditor.cs @@ -256,7 +256,6 @@ namespace Xamarin.PropertyEditing.Mac { if (numericEditor.StringValue != value) { numericEditor.StringValue = value; - NotifyingValueChanged (EventArgs.Empty); } } @@ -294,6 +293,7 @@ namespace Xamarin.PropertyEditing.Mac var newValue = Clamp (numericEditor.DoubleValue + incDevValue); SetValue (newValue); + NotifyingValueChanged (EventArgs.Empty); } public double Clamp (double value) |