From bcd75dab26b6d7fe0302c26583d6fa4f3fa552f3 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Sat, 30 Nov 2024 19:55:33 +0200 Subject: Client changes to handle create frequency API --- internal/client/ui/core/core.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'internal/client/ui/core/core.go') diff --git a/internal/client/ui/core/core.go b/internal/client/ui/core/core.go index fdaab35..27c6b96 100644 --- a/internal/client/ui/core/core.go +++ b/internal/client/ui/core/core.go @@ -193,7 +193,9 @@ func (m *Model) updateConnected(msg tea.Msg) tea.Cmd { } case FocusNetwork: if m.frequencyCreationPopup == nil { - popup := frequencycreation.New() + index := m.networkList.Index() + network := state.State.Networks[index] + popup := frequencycreation.New(network.ID) m.frequencyCreationPopup = &popup } } -- cgit v1.3.1