From 433c8111bad11ba246cb7751501df23326d9141d Mon Sep 17 00:00:00 2001 From: Brian Buller Date: Mon, 18 Feb 2019 08:55:48 -0600 Subject: [PATCH] Rename boltbrowser.go to main.go Also, add version number to about screen --- boltbrowser.go => main.go | 1 + screen_about.go | 4 ++++ 2 files changed, 5 insertions(+) rename boltbrowser.go => main.go (99%) 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"},