Skip to content

Commit

Permalink
Avoid initializing webview core on mono
Browse files Browse the repository at this point in the history
  • Loading branch information
glopesdev committed Jul 30, 2023
1 parent 5d955e1 commit 680f6aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Bonsai.Editor/GraphView/AnnotationPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ private void CoreWebView2_WebResourceRequested(object sender, CoreWebView2WebRes

protected override void OnLoad(EventArgs e)
{
webView.EnsureCoreWebView2Async();
webView?.EnsureCoreWebView2Async();
base.OnLoad(e);
}
}
Expand Down

0 comments on commit 680f6aa

Please sign in to comment.