This commit is contained in:
Родитель
bbeb047084
Коммит
be2681b4aa
|
@ -944,7 +944,7 @@
|
|||
<ItemGroup>
|
||||
<EmbeddedResource Include="$(MSBuildThisFileDirectory)Issue2858.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -29,7 +29,9 @@ namespace Xamarin.Forms.Platform.MacOS
|
|||
|
||||
Application.SetCurrentApplication(application);
|
||||
_application = application;
|
||||
_storyboardMainMenuCount = (int)NSApplication.SharedApplication.MainMenu.Count;
|
||||
|
||||
if(NSApplication.SharedApplication.MainMenu != null)
|
||||
_storyboardMainMenuCount = (int)NSApplication.SharedApplication.MainMenu.Count;
|
||||
|
||||
application.PropertyChanged += ApplicationOnPropertyChanged;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче