show connecting state

This commit is contained in:
sneurlax 2023-09-08 16:26:43 -05:00
parent e34df895de
commit 832bfc08f7

View file

@ -872,12 +872,18 @@ class _WalletNetworkSettingsViewState
.textDark, .textDark,
), ),
), ),
if (TorService.sharedInstance.enabled) if (_torConnectionStatus == TorConnectionStatus.connected)
Text( Text(
"Connected", "Connected",
style: STextStyles.desktopTextExtraExtraSmall(context), style: STextStyles.desktopTextExtraExtraSmall(context),
), ),
if (!TorService.sharedInstance.enabled) if (_torConnectionStatus == TorConnectionStatus.connecting)
Text(
"Connecting...",
style: STextStyles.desktopTextExtraExtraSmall(context),
),
if (_torConnectionStatus ==
TorConnectionStatus.disconnected)
Text( Text(
"Disconnected", "Disconnected",
style: STextStyles.desktopTextExtraExtraSmall(context), style: STextStyles.desktopTextExtraExtraSmall(context),