Skip to content

Commit

Permalink
fix: do no execute platform code outside that platform
Browse files Browse the repository at this point in the history
  • Loading branch information
spouliot committed Feb 29, 2024
1 parent 9c0a1c1 commit f9221fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Uno.UI.Runtime.Skia.Wpf/Builder/HostBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ public static ISkiaHostBuilder UseWindows(this ISkiaHostBuilder builder, Action<
builder.AddHostBuilder(() =>
{
var wpfBuilder = new WpfHostBuilder();
windowsBuilder?.Invoke(wpfBuilder);
if (wpfBuilder.IsSupported)
{
windowsBuilder?.Invoke(wpfBuilder);
}
return wpfBuilder;
});

Expand Down

0 comments on commit f9221fa

Please sign in to comment.