diff options
| author | Jeff Carr <[email protected]> | 2019-05-22 22:50:36 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-05-22 22:50:36 -0700 |
| commit | 0ac47b65bd3fd8b367f814ba1a5fcaa24a7778fa (patch) | |
| tree | 61afe53b121d3bfd5b35b800f02d6346da529aac | |
| parent | 0190410cc9bdbf635bf9a1ab0fe4d17fe9f870fb (diff) | |
allow version to be set
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | gui.go | 1 | ||||
| -rw-r--r-- | splash.go | 3 |
2 files changed, 3 insertions, 1 deletions
@@ -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 @@ -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) |
