summaryrefslogtreecommitdiff
path: root/splash.go
diff options
context:
space:
mode:
Diffstat (limited to 'splash.go')
-rw-r--r--splash.go16
1 files changed, 9 insertions, 7 deletions
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)