diff options
author | Eric Maupin <ermaup@microsoft.com> | 2019-06-26 21:09:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-26 21:09:10 +0300 |
commit | 50cbb497b21e77c752a808ff406db9ba47cff84f (patch) | |
tree | 16ee6b7f0809d858c034ca261c1d046910d2ab1c /Xamarin.PropertyEditing.Mac | |
parent | e96251dab5a8b98ff933ef67a2f487181ec9cd0e (diff) | |
parent | 6955ba38ef0b7d11970c6b08d6a03bd02d1003eb (diff) |
Merge pull request #607 from xamarin/dominique-PropertyButtonNull
[Mac] NeedsPropertyButton maybe false when the EditorViewModel is set.
Diffstat (limited to 'Xamarin.PropertyEditing.Mac')
-rw-r--r-- | Xamarin.PropertyEditing.Mac/Controls/EditorContainer.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Xamarin.PropertyEditing.Mac/Controls/EditorContainer.cs b/Xamarin.PropertyEditing.Mac/Controls/EditorContainer.cs index 9b39415..2175b29 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/EditorContainer.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/EditorContainer.cs @@ -16,13 +16,14 @@ namespace Xamarin.PropertyEditing.Mac public EditorViewModel ViewModel { get => EditorView?.ViewModel; - set - { + set { if (EditorView == null) return; EditorView.ViewModel = value; - PropertyButton.ViewModel = value as PropertyViewModel; + + if (EditorView.NeedsPropertyButton) + PropertyButton.ViewModel = value as PropertyViewModel; } } |