From 138be04e6575f2bd087630e49d122af578c78bf6 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Sat, 29 Jan 2022 19:09:20 +1100 Subject: refactor contexts code --- pkg/gui/updates.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pkg/gui/updates.go') diff --git a/pkg/gui/updates.go b/pkg/gui/updates.go index f3dc14b1d..83642a81a 100644 --- a/pkg/gui/updates.go +++ b/pkg/gui/updates.go @@ -4,11 +4,11 @@ import ( "fmt" "github.com/jesseduffield/gocui" - "github.com/jesseduffield/lazygit/pkg/gui/popup" + "github.com/jesseduffield/lazygit/pkg/gui/types" ) func (gui *Gui) showUpdatePrompt(newVersion string) error { - return gui.c.Ask(popup.AskOpts{ + return gui.c.Ask(types.AskOpts{ Title: "New version available!", Prompt: fmt.Sprintf("Download version %s? (enter/esc)", newVersion), HandleConfirm: func() error { @@ -65,7 +65,7 @@ func (gui *Gui) onUpdateFinish(statusId int, err error) error { } func (gui *Gui) createUpdateQuitConfirmation() error { - return gui.c.Ask(popup.AskOpts{ + return gui.c.Ask(types.AskOpts{ Title: "Currently Updating", Prompt: "An update is in progress. Are you sure you want to quit?", HandleConfirm: func() error { -- cgit v1.2.3