From 6ddbe8c28dd38a6a08f85b336f0a7fb5524c4b78 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 6 May 2019 17:42:59 -0700 Subject: [PATCH] need this for it to work under windows. This is probably actually a bug and can be fixed in the andlabs import internally with go Signed-off-by: Jeff Carr --- main.go | 4 ++++ table.go | 1 + tableCallbacks.go | 1 + 3 files changed, 6 insertions(+) diff --git a/main.go b/main.go index c8eb97d..138525a 100644 --- a/main.go +++ b/main.go @@ -6,9 +6,11 @@ import "fmt" import "github.com/mitchellh/go-homedir" // import "os" import "strings" +import "time" import "github.com/gookit/config" import "github.com/andlabs/ui" +import _ "github.com/andlabs/ui/winmanifest" // dns // import "github.com/miekg/dns" @@ -285,5 +287,7 @@ func setupUI() { func main() { parseConfig() + time.Sleep(2 * 1000 * 1000 * 1000) + ui.Main(setupUI) } diff --git a/table.go b/table.go index 7899829..2313525 100644 --- a/table.go +++ b/table.go @@ -5,6 +5,7 @@ package main import "fmt" import "log" import "github.com/andlabs/ui" +import _ "github.com/andlabs/ui/winmanifest" import "github.com/davecgh/go-spew/spew" type vmRowData struct { diff --git a/tableCallbacks.go b/tableCallbacks.go index 342d832..440647d 100644 --- a/tableCallbacks.go +++ b/tableCallbacks.go @@ -1,6 +1,7 @@ package main import "github.com/andlabs/ui" +import _ "github.com/andlabs/ui/winmanifest" func (mh *modelHandler) NumRows(m *ui.TableModel) int { // log.Println("NumRows() with m=", m)