mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-22 14:15:36 +00:00
Samples.csproj: WebviewSection: check for WebKit.Global.IsSupported
This commit is contained in:
parent
e4b774da5f
commit
69531abb9c
|
@ -19,6 +19,11 @@ namespace Samples
|
|||
|
||||
public WebviewSection()
|
||||
{
|
||||
if (!WebKit.Global.IsSupported) {
|
||||
AddItem(($"{nameof(WebKit.WebView)}",new Label($"{typeof(WebView).Namespace} is not suported on your OS")));
|
||||
return;
|
||||
}
|
||||
|
||||
AddItem(ShowHtml());
|
||||
AddItem(ShowUri());
|
||||
|
||||
|
|
Loading…
Reference in a new issue