关闭子窗口整个程序都会关闭
2024-06-28 14:47:39
关闭指令:
Myllq.Chromium().CloseBrowser(false)
整个程序退出了,原因,没有为子窗口单独设置onClose事件:
chromium.Chromium().SetOnClose(func(sender lcl.IObject, browser *cef.ICefBrowser, aAction *consts.TCefCloseBrowserAction) { *aAction = consts.CbaDelay cef.RunOnMainThread(func() { //run in main thread chromium.WindowParent().Free() tabSheet.Free() }) })