summaryrefslogtreecommitdiffstats
path: root/pkg/gui/updates.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-08-15 16:38:16 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-08-15 18:01:43 +1000
commit0822a9296c1e5f4c43b30b60d40ce870057f3494 (patch)
treeaa50d3fdbd6cf384c222a4b0900bf3527c262a40 /pkg/gui/updates.go
parentd9fa02c53bb9b401f1b5ca07e8ed239862052a42 (diff)
rename
Diffstat (limited to 'pkg/gui/updates.go')
-rw-r--r--pkg/gui/updates.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/updates.go b/pkg/gui/updates.go
index 97ef123fd..cc5bc0bb8 100644
--- a/pkg/gui/updates.go
+++ b/pkg/gui/updates.go
@@ -5,7 +5,7 @@ import "github.com/jesseduffield/gocui"
func (gui *Gui) showUpdatePrompt(newVersion string) error {
currentView := gui.g.CurrentView()
- return gui.createConfirmationPanel(createConfirmationPanelOpts{
+ return gui.ask(askOpts{
returnToView: currentView,
returnFocusOnClose: true,
title: "New version available!",
@@ -60,7 +60,7 @@ func (gui *Gui) onUpdateFinish(err error) error {
}
func (gui *Gui) createUpdateQuitConfirmation(g *gocui.Gui, v *gocui.View) error {
- return gui.createConfirmationPanel(createConfirmationPanelOpts{
+ return gui.ask(askOpts{
returnToView: v,
returnFocusOnClose: true,
title: "Currently Updating",