diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-11-21 18:58:55 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-11-22 10:00:35 +1100 |
commit | f7e6d4e7248293dc1a70a2c616d8a5334dee07f8 (patch) | |
tree | 5a95fcc50422cadf0888d7ab88a47d96b353cc4c /pkg/gui | |
parent | d02e99226542ae37f012867ff04cc19167e478f8 (diff) |
fix updater
Diffstat (limited to 'pkg/gui')
-rw-r--r-- | pkg/gui/updates.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pkg/gui/updates.go b/pkg/gui/updates.go index 02557deb9..5f550dbd6 100644 --- a/pkg/gui/updates.go +++ b/pkg/gui/updates.go @@ -1,11 +1,15 @@ package gui -import "github.com/jesseduffield/gocui" +import ( + "fmt" + + "github.com/jesseduffield/gocui" +) func (gui *Gui) showUpdatePrompt(newVersion string) error { return gui.ask(askOpts{ title: "New version available!", - prompt: "Download latest version? (enter/esc)", + prompt: fmt.Sprintf("Download version %s? (enter/esc)", newVersion), handleConfirm: func() error { gui.startUpdating(newVersion) return nil |