mirror of
https://github.com/taigrr/gico.git
synced 2026-04-01 18:58:59 -07:00
add update functionality to pull in settings changes
This commit is contained in:
@@ -362,6 +362,12 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
|||||||
switch m.cursor {
|
switch m.cursor {
|
||||||
// multiple cursors defined for extensibility, but only graph is used
|
// multiple cursors defined for extensibility, but only graph is used
|
||||||
case graph, commitLog:
|
case graph, commitLog:
|
||||||
|
m.GraphModel.Authors = m.SettingsModel.SelectedAuthors
|
||||||
|
m.GraphModel.Repos = m.SettingsModel.SelectedRepos
|
||||||
|
|
||||||
|
m.CommitLogModel.Authors = m.SettingsModel.SelectedAuthors
|
||||||
|
m.CommitLogModel.Repos = m.SettingsModel.SelectedRepos
|
||||||
|
|
||||||
tmp, _ := m.GraphModel.Update(msg)
|
tmp, _ := m.GraphModel.Update(msg)
|
||||||
m.GraphModel, _ = tmp.(Graph)
|
m.GraphModel, _ = tmp.(Graph)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user