From 6dadeae3fdb0e0609f8be67ef8ce07d0db12806b Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 23 May 2019 13:44:53 -0700 Subject: trap window close and correctly exit Signed-off-by: Jeff Carr --- splash.go | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'splash.go') diff --git a/splash.go b/splash.go index 035b5ad..829e361 100644 --- a/splash.go +++ b/splash.go @@ -30,13 +30,15 @@ func ShowSplashBox(vbox *ui.Box, atest chan int, custom func(int, string)) *ui.B version := "Version: " + Data.Version newbox.Append(ui.NewLabel(version), false) - if (Data.GitCommit != "") { - tmp := "git rev-list: " + Data.GitCommit - newbox.Append(ui.NewLabel(tmp), false) - } - if (Data.GoVersion != "") { - tmp := "go build version: " + Data.GoVersion - newbox.Append(ui.NewLabel(tmp), false) + if (Data.Debug) { + if (Data.GitCommit != "") { + tmp := "git rev-list: " + Data.GitCommit + newbox.Append(ui.NewLabel(tmp), false) + } + if (Data.GoVersion != "") { + tmp := "go build version: " + Data.GoVersion + newbox.Append(ui.NewLabel(tmp), false) + } } okButton := CreateButton("OK", "DONE", custom) -- cgit v1.2.3