解决了无法重复打开的bug

This commit is contained in:
2024-10-12 19:23:45 +08:00
parent 88439dfb81
commit 99ed84f534
+7 -5
View File
@@ -36,11 +36,13 @@ func runExecFile(data *models.BaseCard, w fyne.Window) {
return
}
dir := filepath.Join(cfg.T.CardDir, data.UUID, info.Pwd)
err = utils.File.WinOpenFile(dir, info.Cmd)
if err != nil {
dialog.ShowInformation("测试失败", err.Error(), w)
return
}
go func() {
err = utils.File.WinOpenFile(dir, info.Cmd)
if err != nil {
dialog.ShowInformation("打开失败", err.Error(), w)
return
}
}()
}
func openDir(data *models.BaseCard, w fyne.Window) {