From 68d816c2bbf3870cabd822d3e3ad6ec8d3ff9ec0 Mon Sep 17 00:00:00 2001 From: DaanSelen Date: Tue, 31 Mar 2026 14:21:31 +0200 Subject: [PATCH] chore: dofromgoroutine --- src/modules/draw/draw.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/modules/draw/draw.go b/src/modules/draw/draw.go index 2774e57..297b374 100644 --- a/src/modules/draw/draw.go +++ b/src/modules/draw/draw.go @@ -84,8 +84,11 @@ func MakeFooter(targEntry *widget.Entry, book *string, app fyne.App) *fyne.Conta log.Println("something went wrong while running the meshbook, see above for details") } log.Println(result) - textEntry.SetText(result) - showBtn.Enable() + + fyne.CurrentApp().Driver().DoFromGoroutine(func() { + textEntry.SetText(result) + showBtn.Enable() + }, true) }() })