feat: add execution in goroutine
This commit is contained in:
@@ -76,6 +76,9 @@ func MakeFooter(targEntry *widget.Entry, book *string, app fyne.App) *fyne.Conta
|
||||
if !ok {
|
||||
log.Println("something went wrong while looking for the binary, see above for details")
|
||||
}
|
||||
|
||||
log.Println("kicking off goroutine")
|
||||
go func() {
|
||||
ok, result = runner.RunMeshbook(path, *book, targEntry.Text)
|
||||
if !ok {
|
||||
log.Println("something went wrong while running the meshbook, see above for details")
|
||||
@@ -83,6 +86,7 @@ func MakeFooter(targEntry *widget.Entry, book *string, app fyne.App) *fyne.Conta
|
||||
log.Println(result)
|
||||
textEntry.SetText(result)
|
||||
showBtn.Enable()
|
||||
}()
|
||||
|
||||
})
|
||||
actionWrap := container.NewGridWrap(
|
||||
|
||||
Reference in New Issue
Block a user