1

more fixes

This commit is contained in:
Alex Yatskov 2017-04-13 21:25:19 -07:00
parent 9b832d3f71
commit 54c3afa5c2

4
gui.go
View File

@ -25,6 +25,7 @@ package main
import (
"log"
"path/filepath"
"strings"
"github.com/andlabs/ui"
)
@ -35,8 +36,9 @@ type logger struct {
}
func (l *logger) Write(p []byte) (n int, err error) {
data := strings.Trim(string(p), "\n")
ui.QueueMain(func() {
l.box.Append(ui.NewLabel(string(p)), false)
l.box.Append(ui.NewLabel(data), false)
l.count++
})