From d494f0fe4739a99ccfa93c998b1b5850e4471c70 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 24 May 2019 00:21:15 -0700 Subject: [PATCH] minor Signed-off-by: Jeff Carr --- main.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index b22668f..98d8ac3 100644 --- a/main.go +++ b/main.go @@ -18,6 +18,7 @@ import "git.wit.com/wit/gui" var GITCOMMIT string // this is passed in as an ldflag var GOVERSION string // this is passed in as an ldflag +var BUILDTIME string // this is passed in as an ldflag // import "github.com/davecgh/go-spew/spew" @@ -37,9 +38,6 @@ var GOVERSION string // this is passed in as an ldflag // several smart slice functions (new project. April 2019) // https://github.com/elliotchance/pie -// Exit and write out the config -// (in yaml and json I guess.) -// switch to json once it can be made human readable func onExit(err error) { log.Println("Sleep for 1 second") time.Sleep(1 * 1000 * 1000 * 1000) @@ -103,6 +101,7 @@ func main() { gui.Data.Version = "v0.5" gui.Data.GitCommit = GITCOMMIT gui.Data.GoVersion = GOVERSION + gui.Data.Buildtime = BUILDTIME gui.Data.ButtonClick = buttonClick gui.Data.HomeDir = user.HomeDir gui.Data.Debug = config.Bool("debugging") @@ -180,6 +179,8 @@ func buttonClick(b *gui.ButtonMap) { log.Println("LOGIN WAS OK!") log.Println("LOGIN WAS OK!") log.Println("LOGIN WAS OK!") + msg := "On account " + gui.Data.AccNick + "\n" + gui.ErrorWindow("Login OK", msg) } if (currentMessage.Type == pb.Event_FAIL) { log.Println("LOGIN FAILED")