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

@@ -74,9 +74,9 @@ func (t *themeDialog) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
status.Error(err.Error())
return t, nil
}
return t, tea.Batch(
util.CmdHandler(ThemeChangedMsg{ThemeName: selectedTheme}),
return t, tea.Sequence(
util.CmdHandler(modal.CloseModalMsg{}),
util.CmdHandler(ThemeChangedMsg{ThemeName: selectedTheme}),
)
}
}
@@ -125,4 +125,3 @@ func NewThemeDialog() ThemeDialog {
modal: modal.New(modal.WithTitle("Select Theme"), modal.WithMaxWidth(40)),
}
}