feat: add execution in goroutine

This commit is contained in:
DaanSelen
2026-03-31 13:52:36 +02:00
parent 47fb9d662b
commit d4bccac75b
+4
View File
@@ -76,6 +76,9 @@ func MakeFooter(targEntry *widget.Entry, book *string, app fyne.App) *fyne.Conta
if !ok { if !ok {
log.Println("something went wrong while looking for the binary, see above for details") 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) ok, result = runner.RunMeshbook(path, *book, targEntry.Text)
if !ok { if !ok {
log.Println("something went wrong while running the meshbook, see above for details") 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) log.Println(result)
textEntry.SetText(result) textEntry.SetText(result)
showBtn.Enable() showBtn.Enable()
}()
}) })
actionWrap := container.NewGridWrap( actionWrap := container.NewGridWrap(