mirror of
https://github.com/postmannen/ctrl.git
synced 2024-12-15 17:51:15 +00:00
tui, fixed field update errror after generate
This commit is contained in:
parent
b5c0152b00
commit
65bb1fe475
1 changed files with 3 additions and 1 deletions
4
tui.go
4
tui.go
|
@ -485,6 +485,8 @@ func (t *tui) messageSlide(app *tview.Application) tview.Primitive {
|
|||
fmt.Fprintf(p.logForm, " * message read: %v\n", m)
|
||||
drawMessageInputFields(p, m)
|
||||
})
|
||||
// Clear the form.
|
||||
p.inputForm.Clear(false)
|
||||
p.inputForm.AddFormItem(messageDropdown)
|
||||
|
||||
p.inputForm.AddButton("update message dropdown menu", func() {
|
||||
|
@ -618,7 +620,7 @@ func (t *tui) messageSlide(app *tview.Application) tview.Primitive {
|
|||
app.Stop()
|
||||
})
|
||||
|
||||
app.SetFocus(p.inputForm)
|
||||
// app.SetFocus(p.inputForm)
|
||||
|
||||
p.saveForm.
|
||||
AddInputField("FileName", "", 40, nil, func(text string) {
|
||||
|
|
Loading…
Reference in a new issue