fix(ui): use value messages instead of pointers

Closes #791
This commit is contained in:
ayn2op 2026-04-20 13:53:51 -04:00
parent b12e091c42
commit 5f6d0296c3
3 changed files with 3 additions and 3 deletions

View file

@ -316,7 +316,7 @@ func (m *Model) Update(msg tview.Msg) tview.Cmd {
m.closeState(),
tview.Quit(),
)
case *tview.ModalDoneMsg:
case tview.ModalDoneMsg:
if m.HasLayer(confirmModalLayerName) {
m.RemoveLayer(confirmModalLayerName)
var focusCmd tview.Cmd

View file

@ -48,7 +48,7 @@ func (m *Model) Update(msg tview.Msg) tview.Cmd {
return nil
}
return m.showErrorDialog(msg.err)
case *tview.ModalDoneMsg:
case tview.ModalDoneMsg:
if !m.HasLayer(errorLayerName) {
return nil
}

View file

@ -24,7 +24,7 @@ func (m *Model) Label() string {
func (m *Model) Update(msg tview.Msg) tview.Cmd {
switch msg.(type) {
case *tview.FormSubmitMsg:
case tview.FormSubmitMsg:
token := m.GetFormItem(0).(*tview.InputField).GetText()
if token == "" {
return nil