|
@@ -332,14 +332,21 @@ func createRunUi(url string) *cef.TCEFApplication {
|
|
|
if !IsNetworkConnected(url) {
|
|
|
|
|
|
fmt.Printf("network connect url:%s 失败\n", url)
|
|
|
+ var actionNum int32 = 0
|
|
|
cef.QueueSyncCall(func(int) {
|
|
|
|
|
|
- lcl.Application.MessageBox(" 网络连接失败! 请检查网络配置", "", 0)
|
|
|
+ actionNum = lcl.Application.MessageBox(" 网络连接失败! 请检查网络配置", "", 1)
|
|
|
time.Sleep(1 * time.Second)
|
|
|
})
|
|
|
+ fmt.Println("actionNum: ", actionNum)
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ if actionNum == 1 {
|
|
|
+ isQuiting = true
|
|
|
+ window.CloseBrowserWindow()
|
|
|
|
|
|
- isQuiting = true
|
|
|
- window.CloseBrowserWindow()
|
|
|
+ }
|
|
|
} else {
|
|
|
|
|
|
fmt.Printf("network connect url:%s 成功\n", url)
|