diff options
| author | Jeff Carr <[email protected]> | 2019-05-23 13:44:53 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-05-23 13:44:53 -0700 |
| commit | 6dadeae3fdb0e0609f8be67ef8ce07d0db12806b (patch) | |
| tree | fc589370ee08bfc5a84d99f968078bb0aa47c24e /splash.go | |
| parent | f283a656dc6f57f01a3ef1f049c11830dbe4cdde (diff) | |
trap window close and correctly exit
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'splash.go')
| -rw-r--r-- | splash.go | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -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) |
