解决了无法重复打开的bug
This commit is contained in:
@@ -36,11 +36,13 @@ func runExecFile(data *models.BaseCard, w fyne.Window) {
|
||||
return
|
||||
}
|
||||
dir := filepath.Join(cfg.T.CardDir, data.UUID, info.Pwd)
|
||||
go func() {
|
||||
err = utils.File.WinOpenFile(dir, info.Cmd)
|
||||
if err != nil {
|
||||
dialog.ShowInformation("测试失败", err.Error(), w)
|
||||
dialog.ShowInformation("打开失败", err.Error(), w)
|
||||
return
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
||||
func openDir(data *models.BaseCard, w fyne.Window) {
|
||||
|
||||
Reference in New Issue
Block a user