mirror of
https://github.com/taigrr/gico.git
synced 2026-04-02 03:09:07 -07:00
add update switch
This commit is contained in:
@@ -35,6 +35,16 @@ var settingsKey = key.NewBinding(
|
||||
)
|
||||
|
||||
func (m Settings) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
||||
switch m.cursor {
|
||||
case authors:
|
||||
var cmd tea.Cmd
|
||||
m.AuthorList, cmd = m.AuthorList.Update(msg)
|
||||
return m, cmd
|
||||
case repos:
|
||||
var cmd tea.Cmd
|
||||
m.RepoList, cmd = m.RepoList.Update(msg)
|
||||
return m, cmd
|
||||
}
|
||||
return m, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user