mirror of
https://gitee.com/energye/energy.git
synced 2024-11-29 18:28:06 +08:00
Fix: chromium proc CreateBrowser
This commit is contained in:
parent
15acfb3105
commit
da6cbcc084
@ -402,7 +402,11 @@ func (m *TCEFChromium) CreateBrowser(window ICEFWindowParent, windowName string,
|
||||
if !m.IsValid() {
|
||||
return false
|
||||
}
|
||||
return _CEFChromium_CreateBrowse(m.Instance(), window.Instance(), api.PascalStr(windowName), context.Instance(), extraInfo.Instance())
|
||||
var windowPtr uintptr
|
||||
if window != nil {
|
||||
windowPtr = window.Instance()
|
||||
}
|
||||
return _CEFChromium_CreateBrowse(m.Instance(), windowPtr, api.PascalStr(windowName), context.Instance(), extraInfo.Instance())
|
||||
}
|
||||
|
||||
func (m *TCEFChromium) CreateBrowserByBrowserViewComponent(homePage string, browserViewComponent *TCEFBrowserViewComponent) bool {
|
||||
|
Loading…
Reference in New Issue
Block a user