summaryrefslogtreecommitdiff
path: root/internal/client/ui/core/core.go
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2024-11-30 19:55:33 +0200
committerKyren223 <Kyren223@proton.me>2024-11-30 19:55:33 +0200
commitbcd75dab26b6d7fe0302c26583d6fa4f3fa552f3 (patch)
tree11d3183c9a5321c8d841177251e8533696baea15 /internal/client/ui/core/core.go
parent7357dc120bd5d4ecc2fbf0c2cd837952e81df67d (diff)
Client changes to handle create frequency API
Diffstat (limited to 'internal/client/ui/core/core.go')
-rw-r--r--internal/client/ui/core/core.go4
1 files changed, 3 insertions, 1 deletions
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
}
}