diff --git a/boltbrowser.go b/main.go similarity index 99% rename from boltbrowser.go rename to main.go index 251c990..a6d4eac 100644 --- a/boltbrowser.go +++ b/main.go @@ -12,6 +12,7 @@ import ( ) var ProgramName = "boltbrowser" +var VersionNum = 1.1 var databaseFiles []string var db *bolt.DB diff --git a/screen_about.go b/screen_about.go index bfae71a..bd2c827 100644 --- a/screen_about.go +++ b/screen_about.go @@ -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"},