From d4bccac75b0e6fef6f3cab9ea6b048a4e208b220 Mon Sep 17 00:00:00 2001 From: DaanSelen Date: Tue, 31 Mar 2026 13:52:36 +0200 Subject: [PATCH] feat: add execution in goroutine --- src/modules/draw/draw.go | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/modules/draw/draw.go b/src/modules/draw/draw.go index 8809b65..2774e57 100644 --- a/src/modules/draw/draw.go +++ b/src/modules/draw/draw.go @@ -76,13 +76,17 @@ 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") } - ok, result = runner.RunMeshbook(path, *book, targEntry.Text) - if !ok { - log.Println("something went wrong while running the meshbook, see above for details") - } - log.Println(result) - textEntry.SetText(result) - showBtn.Enable() + + 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") + } + log.Println(result) + textEntry.SetText(result) + showBtn.Enable() + }() }) actionWrap := container.NewGridWrap(