mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-08-25 08:25:07 +03:00
Init webview2 window on constuct
This commit is contained in:
parent
99e7bfa71c
commit
bf64987a4a
1 changed files with 10 additions and 1 deletions
|
@ -46,7 +46,16 @@ const (
|
||||||
|
|
||||||
// New creates a new webview in a new window.
|
// New creates a new webview in a new window.
|
||||||
func New(debug bool) WebView {
|
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.
|
// NewWindow creates a new webview using an existing window.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue