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:
authorEric Maupin <ermaup@microsoft.com>2018-05-01 00:38:16 +0300
committerEric Maupin <ermaup@microsoft.com>2018-05-01 01:00:33 +0300
commitc3c2276bf00f31498e45967f2ceb43b83d9e0ec6 (patch)
tree1cd300c36d5caf1b704a9d7ad159dbb499b73729 /Xamarin.PropertyEditing
parentc7e1930ab4382b9949e37c16c030ad719b5b395a (diff)
[Core] Don't trigger reset on child groups if already empty
Diffstat (limited to 'Xamarin.PropertyEditing')
-rw-r--r--Xamarin.PropertyEditing/ObservableLookup.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/Xamarin.PropertyEditing/ObservableLookup.cs b/Xamarin.PropertyEditing/ObservableLookup.cs
index cc23e6e..e4b24d3 100644
--- a/Xamarin.PropertyEditing/ObservableLookup.cs
+++ b/Xamarin.PropertyEditing/ObservableLookup.cs
@@ -216,9 +216,10 @@ namespace Xamarin.PropertyEditing
{
if (key == null) {
bool removed = (this.nullGrouping.Count > 0);
- this.nullGrouping.Clear();
- if (removed)
- OnCollectionChanged (new NotifyCollectionChangedEventArgs (NotifyCollectionChangedAction.Remove, (object)this.nullGrouping, this.groupings.Count));
+ if (removed) {
+ this.nullGrouping.Clear();
+ OnCollectionChanged (new NotifyCollectionChangedEventArgs (NotifyCollectionChangedAction.Remove, (object) this.nullGrouping, this.groupings.Count));
+ }
return removed;
}