Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/Xamarin.PropertyEditing.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBertrand Le Roy <beleroy@microsoft.com>2018-09-26 01:23:39 +0300
committerBertrand Le Roy <beleroy@microsoft.com>2018-09-26 01:23:39 +0300
commitd7beecb175793c2edce59a082508b76d321449b3 (patch)
tree6d90570c4295dda21a79b422f7139353bcb6faab /Xamarin.PropertyEditing.Mac/Controls
parent3a99673a4082de39bedc5018857d5f52fea66e1a (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.cs2
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)