wip: refactoring tui

This commit is contained in:
adamdottv
2025-06-13 06:49:59 -05:00
parent 97837d2d23
commit 1b8cfe9e99
8 changed files with 40 additions and 43 deletions

View File

@@ -73,15 +73,11 @@ func (q *quitDialog) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
if !q.selectedNo {
return q, tea.Quit
}
return q, tea.Batch(
util.CmdHandler(modal.CloseModalMsg{}),
)
return q, util.CmdHandler(modal.CloseModalMsg{})
case key.Matches(msg, helpKeys.Yes):
return q, tea.Quit
case key.Matches(msg, helpKeys.No):
return q, tea.Batch(
util.CmdHandler(modal.CloseModalMsg{}),
)
return q, util.CmdHandler(modal.CloseModalMsg{})
}
}
return q, nil