From bf64987a4a41016598df395ff550179decb7a17f Mon Sep 17 00:00:00 2001 From: Mihail Slobodyanuk Date: Mon, 19 Dec 2022 13:22:26 +0200 Subject: [PATCH] Init webview2 window on constuct --- contrib/ui/mesh-ui/webview_windows.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/contrib/ui/mesh-ui/webview_windows.go b/contrib/ui/mesh-ui/webview_windows.go index 518e0e09..96badc20 100755 --- a/contrib/ui/mesh-ui/webview_windows.go +++ b/contrib/ui/mesh-ui/webview_windows.go @@ -46,7 +46,16 @@ const ( // New creates a new webview in a new window. func New(debug bool) WebView { - return webview2.New(debug) + //return webview2.New(debug) + return webview2.NewWithOptions(webview2.WebViewOptions{ + Debug: debug, + WindowOptions: webview2.WindowOptions{ + IconId: 128, + Title: "RiV-mesh", + Width: 706, + Height: 960, + }, + }) } // NewWindow creates a new webview using an existing window.