summaryrefslogtreecommitdiff
path: root/splash.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-05-22 22:50:36 -0700
committerJeff Carr <[email protected]>2019-05-22 22:50:36 -0700
commit0ac47b65bd3fd8b367f814ba1a5fcaa24a7778fa (patch)
tree61afe53b121d3bfd5b35b800f02d6346da529aac /splash.go
parent0190410cc9bdbf635bf9a1ab0fe4d17fe9f870fb (diff)
allow version to be set
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'splash.go')
-rw-r--r--splash.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/splash.go b/splash.go
index 17b460f..6304864 100644
--- a/splash.go
+++ b/splash.go
@@ -27,7 +27,8 @@ func ShowSplashBox(vbox *ui.Box, atest chan int, custom func(int, string)) *ui.B
newbox.Append(ui.NewLabel("OS: " + runtime.GOOS), false)
}
- newbox.Append(ui.NewLabel("Version: v0.3"), false)
+ version := "Version: " + Data.Version
+ newbox.Append(ui.NewLabel(version), false)
okButton := CreateButton("OK", "CLOSE", custom)
newbox.Append(okButton, false)