Rename boltbrowser.go to main.go

Also, add version number to about screen
This commit is contained in:
Brian Buller 2019-02-18 08:55:48 -06:00
parent b274dceb94
commit 433c8111ba
2 changed files with 5 additions and 0 deletions

View File

@ -12,6 +12,7 @@ import (
)
var ProgramName = "boltbrowser"
var VersionNum = 1.1
var databaseFiles []string
var db *bolt.DB

View File

@ -93,6 +93,10 @@ func (screen *AboutScreen) drawScreen(style Style) {
yPos++
}
}
yPos++
versionString := fmt.Sprintf("Version: %0.1f", VersionNum)
termboxUtil.DrawStringAtPoint(versionString, (width-len(versionString))/2, yPos, style.defaultFg, style.defaultBg)
yPos++
commands1 := [...]Command{
{"h,←", "close parent"},