diff options
Diffstat (limited to 'internal/client/ui/core/core.go')
| -rw-r--r-- | internal/client/ui/core/core.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/client/ui/core/core.go b/internal/client/ui/core/core.go index 5d87294..5115274 100644 --- a/internal/client/ui/core/core.go +++ b/internal/client/ui/core/core.go @@ -288,9 +288,12 @@ func (m *Model) updateConnected(msg tea.Msg) tea.Cmd { switch m.focus { case FocusNetworkList: m.networkList, cmd = m.networkList.Update(msg) - m.frequencyList.Set(m.networkList.Index()) + m.frequencyList.SetNetworkIndex(m.networkList.Index()) + m.chat.SetNetworkIndex(m.networkList.Index()) case FocusFrequencyList: m.frequencyList, cmd = m.frequencyList.Update(msg) + index := m.frequencyList.Index() + m.chat.Set(nil, &index) case FocusChat: m.chat, cmd = m.chat.Update(msg) } |
