From 2e1707c45bc78523fa91880dcd407ea886863a68 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Tue, 14 Jan 2025 17:55:19 +0200 Subject: [PATCH] Fixed loading screen not animating after losing connection --- internal/client/ui/core/core.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/client/ui/core/core.go b/internal/client/ui/core/core.go index 2c77ea6..4511f3b 100644 --- a/internal/client/ui/core/core.go +++ b/internal/client/ui/core/core.go @@ -186,7 +186,7 @@ func (m *Model) updateConnected(msg tea.Msg) tea.Cmd { state.UserID = nil m.connected = false m.timeout = initialTimeout - return gateway.Connect(m.privKey, connectionTimeout) + return tea.Batch(gateway.Connect(m.privKey, connectionTimeout), m.loading.Init()) case *packet.Error: err := "new connection from another location, closing this one"