From a58f1b34b2138d07c5ccde7458bb774207a0f05b Mon Sep 17 00:00:00 2001 From: skanehira Date: Wed, 30 Oct 2019 21:53:08 +0900 Subject: [PATCH] remove page when close input --- gui/gui.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/gui.go b/gui/gui.go index b254d44..e9fa336 100644 --- a/gui/gui.go +++ b/gui/gui.go @@ -52,7 +52,7 @@ func (g *Gui) Input(text string, doneFunc func(text string)) { input.SetLabel("field:").SetLabelWidth(6).SetDoneFunc(func(key tcell.Key) { if key == tcell.KeyEnter { doneFunc(input.GetText()) - g.Pages.SendToBack("input") + g.Pages.RemovePage("input") } })