diff options
Diffstat (limited to 'internal/client/ui/core/core.go')
| -rw-r--r-- | internal/client/ui/core/core.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/internal/client/ui/core/core.go b/internal/client/ui/core/core.go index 4c3db77..11da7ef 100644 --- a/internal/client/ui/core/core.go +++ b/internal/client/ui/core/core.go @@ -313,11 +313,9 @@ func (m *Model) updateConnected(msg tea.Msg) tea.Cmd { case FocusNetworkList: m.networkList, cmd = m.networkList.Update(msg) 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) + m.chat.SetFrequency(m.networkList.Index(), m.frequencyList.Index()) case FocusChat: m.chat, cmd = m.chat.Update(msg) } |
