mirror of
https://gitee.com/energye/energy.git
synced 2024-12-02 19:57:48 +08:00
upgrade: beta fix: macosx close bug
This commit is contained in:
parent
5ea72a428f
commit
70da06cf67
@ -28,13 +28,8 @@ func NewApplication(cfg *tCefApplicationConfig) *TCEFApplication {
|
|||||||
}
|
}
|
||||||
cfg.framework()
|
cfg.framework()
|
||||||
result := new(TCEFApplication)
|
result := new(TCEFApplication)
|
||||||
if Args.IsMain() {
|
|
||||||
r1, _, _ := Proc(internale_CEFApplication_Create).Call(uintptr(unsafe.Pointer(cfg)))
|
r1, _, _ := Proc(internale_CEFApplication_Create).Call(uintptr(unsafe.Pointer(cfg)))
|
||||||
result.instance = unsafe.Pointer(r1)
|
result.instance = unsafe.Pointer(r1)
|
||||||
} else {
|
|
||||||
r1, _, _ := Proc(internale_CEFApplicationSub_Create).Call(uintptr(unsafe.Pointer(cfg)))
|
|
||||||
result.instance = unsafe.Pointer(r1)
|
|
||||||
}
|
|
||||||
//register default function
|
//register default function
|
||||||
result.defaultSetOnContextCreated()
|
result.defaultSetOnContextCreated()
|
||||||
result.defaultSetOnProcessMessageReceived()
|
result.defaultSetOnProcessMessageReceived()
|
||||||
|
@ -32,7 +32,6 @@ func init() {
|
|||||||
dllimports.NewEnergyImport("AddCustomCommandLine", 0),
|
dllimports.NewEnergyImport("AddCustomCommandLine", 0),
|
||||||
//application
|
//application
|
||||||
dllimports.NewEnergyImport("CEFApplication_Create", 0),
|
dllimports.NewEnergyImport("CEFApplication_Create", 0),
|
||||||
dllimports.NewEnergyImport("CEFApplicationSub_Create", 0),
|
|
||||||
dllimports.NewEnergyImport("CEFApplication_Destroy", 0),
|
dllimports.NewEnergyImport("CEFApplication_Destroy", 0),
|
||||||
dllimports.NewEnergyImport("CEFApplication_Free", 0),
|
dllimports.NewEnergyImport("CEFApplication_Free", 0),
|
||||||
dllimports.NewEnergyImport("CEFApplication_StopScheduler", 0),
|
dllimports.NewEnergyImport("CEFApplication_StopScheduler", 0),
|
||||||
@ -363,7 +362,6 @@ const (
|
|||||||
internale_AddCustomCommandLine
|
internale_AddCustomCommandLine
|
||||||
//application
|
//application
|
||||||
internale_CEFApplication_Create
|
internale_CEFApplication_Create
|
||||||
internale_CEFApplicationSub_Create
|
|
||||||
internale_CEFApplication_Destroy
|
internale_CEFApplication_Destroy
|
||||||
internale_CEFApplication_Free
|
internale_CEFApplication_Free
|
||||||
internale_CEFApplication_StopScheduler
|
internale_CEFApplication_StopScheduler
|
||||||
|
Loading…
Reference in New Issue
Block a user