From 7570bf6e27bbde0eaa1f8bb65adcd776e9e2e143 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 12 May 2019 18:55:15 -0700 Subject: [PATCH] spawns a second window (but segfaults if you close it) Signed-off-by: Jeff Carr --- eventChannel.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eventChannel.go b/eventChannel.go index 5e7db73..9f8c872 100644 --- a/eventChannel.go +++ b/eventChannel.go @@ -11,6 +11,9 @@ import "strconv" import "github.com/golang/protobuf/proto" import pb "git.wit.com/wit/witProtobuf" +import "github.com/andlabs/ui" +import _ "github.com/andlabs/ui/winmanifest" + import "git.wit.com/wit/gui" var mychannel chan *pb.Event @@ -26,6 +29,7 @@ func processEvents() { log.Println("processEvents() on channel recieved a message = ", message) if (message.Type == pb.Event_DEMO) { log.Println("processEvents() do Event DEMO") + go ui.Main(gui.SetupDemoUI) } else { mh := addVmsTab(30) ReadReceivedData(message, mh)