|
|
|
@ -81,7 +81,7 @@ func (gui *Gui) prepareConfirmationPanel(currentView *gocui.View, title, prompt
|
|
|
|
|
gui.g.StartTicking()
|
|
|
|
|
confirmationView.Title = title
|
|
|
|
|
confirmationView.Wrap = true
|
|
|
|
|
confirmationView.FgColor = gocui.ColorWhite
|
|
|
|
|
confirmationView.FgColor = gocui.ColorDefault
|
|
|
|
|
}
|
|
|
|
|
gui.g.Update(func(g *gocui.Gui) error {
|
|
|
|
|
return gui.switchFocus(gui.g, currentView, confirmationView, false)
|
|
|
|
@ -147,7 +147,9 @@ func (gui *Gui) setKeyBindings(g *gocui.Gui, handleConfirm, handleClose func(*go
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// createSpecificErrorPanel allows you to create an error popup, specifying the
|
|
|
|
|
// view to be focused when the user closes the popup, and a boolean specifying
|
|
|
|
|
//
|
|
|
|
|
// view to be focused when the user closes the popup, and a boolean specifying
|
|
|
|
|
//
|
|
|
|
|
// whether we will log the error. If the message may include a user password,
|
|
|
|
|
// this function is to be used over the more generic createErrorPanel, with
|
|
|
|
|
// willLog set to false
|
|
|
|
|