allow version to be set

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-05-22 22:50:36 -07:00
parent 0190410cc9
commit 0ac47b65bd
2 changed files with 3 additions and 1 deletions

1
gui.go
View File

@ -24,6 +24,7 @@ type GuiDataStructure struct {
ButtonClickNew func(*ButtonMap)
CurrentVM string
MyArea *ui.Area
Version string
// stuff for the splash screen / setup tabs
cloudWindow *ui.Window

View File

@ -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)