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>2019-01-16 19:20:32 +0300
committerEric Maupin <ermaup@microsoft.com>2019-01-16 19:20:33 +0300
commit2390654414e207c7ac9feb95b49125317217f057 (patch)
tree988b9feaeeb125096dcc4b4c97e32a5a462f334a /Xamarin.PropertyEditing.Mac
parent80aed4a686658c2f721ef749310a140aa1f10524 (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.cs3
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);