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:
authorBret Johnson <bret.johnson@microsoft.com>2022-04-19 19:00:30 +0300
committervs-mobiletools-engineering-service2 <valco@microsoft.com>2022-04-19 19:47:47 +0300
commit66883f7f31ec6b4367d456c461df111a26d805ab (patch)
tree3a7ed8eacd592d4845fca3931ca3ad462153d703
parent84ffcb6e88c5f44825e61f136fa6ee96453cbb7f (diff)
Remove UpdateExpansions
Remove the call to UpdateExpansions after ReloadData in response to OnPropertiesChanged (e.g. called when selection changes). This doesn't seem necessary, as when views are recreated their expansion status is set correctly originally and AppKit remembers expansion state after. Further, this fixes AB#1521131, where the Name and Type rows are sometimes blank - apparently expanding manually, and doing it synchronously like that, causes the NSOutlineView to get confused and not show the top row sometimes.
-rw-r--r--Xamarin.PropertyEditing.Mac/PropertyList.cs2
1 files changed, 0 insertions, 2 deletions
diff --git a/Xamarin.PropertyEditing.Mac/PropertyList.cs b/Xamarin.PropertyEditing.Mac/PropertyList.cs
index 027b21f..7e0d9aa 100644
--- a/Xamarin.PropertyEditing.Mac/PropertyList.cs
+++ b/Xamarin.PropertyEditing.Mac/PropertyList.cs
@@ -153,8 +153,6 @@ namespace Xamarin.PropertyEditing.Mac
private void OnPropertiesChanged (object sender, EventArgs e)
{
this.propertyTable.ReloadData ();
-
- ((PropertyTableDelegate)this.propertyTable.Delegate).UpdateExpansions (this.propertyTable);
}
private void UpdateResourceProvider ()