mirror of
https://gitee.com/energye/energy.git
synced 2024-12-05 21:28:17 +08:00
U: demo crawling-web-pages
This commit is contained in:
parent
e63bdffc8c
commit
44169fa36f
@ -317,7 +317,13 @@ func (m *Energy) listen() {
|
||||
})
|
||||
m.chromium.SetOnTitleChange(func(sender lcl.IObject, browser *cef.ICefBrowser, title string) {
|
||||
if m.window != nil {
|
||||
m.window.SetTitle(title)
|
||||
if m.window.IsLCL() {
|
||||
cef.RunOnMainThread(func() {
|
||||
m.window.SetTitle(title)
|
||||
})
|
||||
} else {
|
||||
m.window.SetTitle(title)
|
||||
}
|
||||
}
|
||||
})
|
||||
m.chromium.SetOnLoadingProgressChange(func(sender lcl.IObject, browser *cef.ICefBrowser, progress float64) {
|
||||
|
Loading…
Reference in New Issue
Block a user