From 0aa83227da57ae67ad9d06f1032cebaaff4e8dfa Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Wed, 27 Nov 2024 17:44:38 +0200 Subject: Fixed color issue on the server, made the UI have better UX --- internal/client/ui/core/core.go | 6 +++++- 1 file changed, 5 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 fba3ddb..1f86121 100644 --- a/internal/client/ui/core/core.go +++ b/internal/client/ui/core/core.go @@ -144,7 +144,11 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { case tea.KeyEnter: if m.networkCreationPopup != nil { - return m, m.networkCreationPopup.Select() + cmd := m.networkCreationPopup.Select() + if cmd != nil { + m.networkCreationPopup = nil + } + return m, cmd } default: -- cgit v1.3.1