diff options
author | Eric Maupin <ermaup@microsoft.com> | 2019-06-19 21:45:39 +0300 |
---|---|---|
committer | CartBlanche <savagesoftware@gmail.com> | 2019-06-26 21:17:31 +0300 |
commit | 1d8b9f497fa63a975c160946212a009d7fd8b0eb (patch) | |
tree | 73d39173e27552e6adf18bf38893c2f5d78ffd3b /Xamarin.PropertyEditing.Mac | |
parent | bbe46e57cb1627d26ccc0e68dc9b2ed877b3d170 (diff) |
[mac] Ensure property button view is cleared
Diffstat (limited to 'Xamarin.PropertyEditing.Mac')
-rw-r--r-- | Xamarin.PropertyEditing.Mac/Controls/EditorContainer.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Xamarin.PropertyEditing.Mac/Controls/EditorContainer.cs b/Xamarin.PropertyEditing.Mac/Controls/EditorContainer.cs index ca1d76b..bb2e5f9 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/EditorContainer.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/EditorContainer.cs @@ -57,8 +57,8 @@ namespace Xamarin.PropertyEditing.Mac public override void ViewWillMoveToSuperview (NSView newSuperview) { - if (newSuperview == null && EditorView != null) - EditorView.ViewModel = null; + if (newSuperview == null) + ViewModel = null; base.ViewWillMoveToSuperview (newSuperview); } |