diff options
author | Eric Maupin <ermaup@microsoft.com> | 2019-01-16 19:20:32 +0300 |
---|---|---|
committer | Eric Maupin <ermaup@microsoft.com> | 2019-01-16 19:20:33 +0300 |
commit | 2390654414e207c7ac9feb95b49125317217f057 (patch) | |
tree | 988b9feaeeb125096dcc4b4c97e32a5a462f334a /Xamarin.PropertyEditing.Mac | |
parent | 80aed4a686658c2f721ef749310a140aa1f10524 (diff) |
[mac] Fix panel loading on Mojave
Seems Mojave calls ViewDidChangeEffectiveAppearance in NSView.ctor (NSCoder)
where High Sierra did not. We'll just ignore appearance changes until we're
setup.
Diffstat (limited to 'Xamarin.PropertyEditing.Mac')
-rw-r--r-- | Xamarin.PropertyEditing.Mac/PropertyEditorPanel.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Xamarin.PropertyEditing.Mac/PropertyEditorPanel.cs b/Xamarin.PropertyEditing.Mac/PropertyEditorPanel.cs index 0979c87..5f7d0d2 100644 --- a/Xamarin.PropertyEditing.Mac/PropertyEditorPanel.cs +++ b/Xamarin.PropertyEditing.Mac/PropertyEditorPanel.cs @@ -113,6 +113,9 @@ namespace Xamarin.PropertyEditing.Mac public override void ViewDidChangeEffectiveAppearance () { + if (this.propertyArrangeMode == null) + return; + this.propertyArrangeMode.Font = HostResourceProvider.GetNamedFont (PropertyEditorControl.DefaultFontName, PropertyEditorControl.DefaultFontSize); this.propertyFilter.Font = HostResourceProvider.GetNamedFont (PropertyEditorControl.DefaultFontName, PropertyEditorControl.DefaultFontSize); |