add update functionality to pull in settings changes

This commit is contained in:
2023-02-22 21:51:55 -08:00
parent fdaad2b3fb
commit 7296409a49

View File

@@ -362,6 +362,12 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
switch m.cursor {
// multiple cursors defined for extensibility, but only graph is used
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)
m.GraphModel, _ = tmp.(Graph)