allow version to be set
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
0190410cc9
commit
0ac47b65bd
1
gui.go
1
gui.go
|
@ -24,6 +24,7 @@ type GuiDataStructure struct {
|
||||||
ButtonClickNew func(*ButtonMap)
|
ButtonClickNew func(*ButtonMap)
|
||||||
CurrentVM string
|
CurrentVM string
|
||||||
MyArea *ui.Area
|
MyArea *ui.Area
|
||||||
|
Version string
|
||||||
|
|
||||||
// stuff for the splash screen / setup tabs
|
// stuff for the splash screen / setup tabs
|
||||||
cloudWindow *ui.Window
|
cloudWindow *ui.Window
|
||||||
|
|
|
@ -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("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)
|
okButton := CreateButton("OK", "CLOSE", custom)
|
||||||
newbox.Append(okButton, false)
|
newbox.Append(okButton, false)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue