fix(tui): help dialog sorting

This commit is contained in:
adamdottv 2025-06-18 14:06:20 -05:00
commit 1d0bfc2b2a
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
3 changed files with 17 additions and 9 deletions

View file

@ -15,7 +15,7 @@ type helpDialog struct {
width int
height int
modal *modal.Modal
commands commands.CommandRegistry
commands []commands.Command
}
func (h *helpDialog) Init() tea.Cmd {
@ -80,7 +80,7 @@ type HelpDialog interface {
layout.Modal
}
func NewHelpDialog(commands commands.CommandRegistry) HelpDialog {
func NewHelpDialog(commands []commands.Command) HelpDialog {
return &helpDialog{
commands: commands,
modal: modal.New(),