Rename boltbrowser.go to main.go
Also, add version number to about screen
This commit is contained in:
parent
b274dceb94
commit
433c8111ba
@ -12,6 +12,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var ProgramName = "boltbrowser"
|
var ProgramName = "boltbrowser"
|
||||||
|
var VersionNum = 1.1
|
||||||
|
|
||||||
var databaseFiles []string
|
var databaseFiles []string
|
||||||
var db *bolt.DB
|
var db *bolt.DB
|
@ -93,6 +93,10 @@ func (screen *AboutScreen) drawScreen(style Style) {
|
|||||||
yPos++
|
yPos++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
yPos++
|
||||||
|
versionString := fmt.Sprintf("Version: %0.1f", VersionNum)
|
||||||
|
termboxUtil.DrawStringAtPoint(versionString, (width-len(versionString))/2, yPos, style.defaultFg, style.defaultBg)
|
||||||
|
yPos++
|
||||||
|
|
||||||
commands1 := [...]Command{
|
commands1 := [...]Command{
|
||||||
{"h,←", "close parent"},
|
{"h,←", "close parent"},
|
||||||
|
Loading…
Reference in New Issue
Block a user