1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-31 14:24:25 +03:00

move update quit confirmation function into updates file

This commit is contained in:
Jesse Duffield
2018-08-27 20:26:49 +10:00
parent 25c60b1854
commit f861175f83
2 changed files with 8 additions and 8 deletions

View File

@ -401,14 +401,6 @@ func (gui *Gui) RunWithSubprocesses() {
}
}
func (gui *Gui) createUpdateQuitConfirmation(g *gocui.Gui, v *gocui.View) error {
title := "Currently Updating"
message := "An update is in progress. Are you sure you want to quit?"
return gui.createConfirmationPanel(gui.g, v, title, message, func(g *gocui.Gui, v *gocui.View) error {
return gocui.ErrQuit
}, nil)
}
func (gui *Gui) quit(g *gocui.Gui, v *gocui.View) error {
if gui.State.Updating {
return gui.createUpdateQuitConfirmation(g, v)