summaryrefslogtreecommitdiff
path: root/internal/client/ui
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2025-01-14 17:55:19 +0200
committerKyren223 <Kyren223@proton.me>2025-01-14 17:55:19 +0200
commit2e1707c45bc78523fa91880dcd407ea886863a68 (patch)
tree3015a80b02b5aa86fc22697baa002f7b47d6d036 /internal/client/ui
parentfd43d51d9138175d01c2c209477e579ac174f459 (diff)
Fixed loading screen not animating after losing connection
Diffstat (limited to 'internal/client/ui')
-rw-r--r--internal/client/ui/core/core.go2
1 files changed, 1 insertions, 1 deletions
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"