From 46c82c83abd31cbfc1000885885c50361d022c84 Mon Sep 17 00:00:00 2001 From: ardocrat Date: Sat, 18 May 2024 10:39:18 +0300 Subject: [PATCH] tor: loading status --- src/gui/views/wallets/wallet/transport.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gui/views/wallets/wallet/transport.rs b/src/gui/views/wallets/wallet/transport.rs index e245b3b..bd841a5 100644 --- a/src/gui/views/wallets/wallet/transport.rs +++ b/src/gui/views/wallets/wallet/transport.rs @@ -271,10 +271,11 @@ impl WalletTransport { // Setup Tor status text. let is_running = Tor::is_service_running(service_id); - let is_starting = Tor::is_service_starting(service_id) || - wallet.foreign_api_port().is_none(); + let is_starting = Tor::is_service_starting(service_id); let has_error = Tor::is_service_failed(service_id); - let (icon, text) = if is_starting { + let (icon, text) = if wallet.foreign_api_port().is_none() { + (DOTS_THREE_CIRCLE, t!("wallets.loading")) + } else if is_starting { (DOTS_THREE_CIRCLE, t!("transport.connecting")) } else if has_error { (WARNING_CIRCLE, t!("transport.conn_error"))