chore: edit output

This commit is contained in:
DaanSelen
2026-03-31 13:40:20 +02:00
parent 31d3ee8886
commit 30ad7f1014
2 changed files with 4 additions and 6 deletions
+3 -5
View File
@@ -54,16 +54,12 @@ func MakeInput(targEntry *widget.Entry, book *string) *fyne.Container {
func MakeFooter(targEntry *widget.Entry, book *string, app fyne.App) *fyne.Container { func MakeFooter(targEntry *widget.Entry, book *string, app fyne.App) *fyne.Container {
var result string var result string
textEntry := widget.NewMultiLineEntry()
showBtn := widget.NewButton("Show Results", func() { showBtn := widget.NewButton("Show Results", func() {
log.Println("showing output")
w := app.NewWindow("Result Display") w := app.NewWindow("Result Display")
w.Resize(windowSize) w.Resize(windowSize)
textEntry := widget.NewMultiLineEntry()
textEntry.SetText(result)
w.SetContent(container.NewScroll(textEntry)) w.SetContent(container.NewScroll(textEntry))
w.Show() w.Show()
}) })
@@ -84,6 +80,8 @@ func MakeFooter(targEntry *widget.Entry, book *string, app fyne.App) *fyne.Conta
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")
} }
log.Println(result)
textEntry.SetText(result)
showBtn.Enable() showBtn.Enable()
}) })
+1 -1
View File
@@ -47,7 +47,7 @@ func RunMeshbook(binPath, bookPath, targGroup string) (bool, string) {
if len(bookPath) == 0 { if len(bookPath) == 0 {
args = []string{"--help"} args = []string{"--help"}
} else { } else {
args = []string{"--nograce", "--silent", "-mb", bookPath, "--group", targGroup} args = []string{"--nograce", "--indent", "--silent", "-mb", bookPath, "--group", targGroup}
} }
log.Printf("running with parameters: %v", args) log.Printf("running with parameters: %v", args)