hide 0 monero network peers on footer

This commit is contained in:
woodser 2023-06-15 10:01:38 -04:00
parent b414ac942d
commit 322bc40d79
16 changed files with 32 additions and 17 deletions

View File

@ -89,13 +89,13 @@ public class P2PNetworkSetup {
p2PNetworkInfoBinding = EasyBind.combine(bootstrapState, bootstrapWarning, p2PService.getNumConnectedPeers(),
connectionService.numPeersProperty(), hiddenServicePublished, initialP2PNetworkDataReceived,
(state, warning, numP2pPeers, numBtcPeers, hiddenService, dataReceived) -> {
(state, warning, numP2pPeers, numXmrPeers, hiddenService, dataReceived) -> {
String result;
int p2pPeers = (int) numP2pPeers;
if (warning != null && p2pPeers == 0) {
result = warning;
} else {
String p2pInfo = Res.get("mainView.footer.p2pInfo", numBtcPeers, numP2pPeers);
String p2pInfo = ((int) numXmrPeers > 0 ? Res.get("mainView.footer.xmrPeers", numXmrPeers) + " / " : "") + Res.get("mainView.footer.p2pPeers", numP2pPeers);
if (dataReceived && hiddenService) {
result = p2pInfo;
} else if (p2pPeers == 0)

View File

@ -272,7 +272,8 @@ mainView.footer.btcInfo.synchronizingWith=Synchronizing with {0} at block: {1} /
mainView.footer.btcInfo.synchronizedWith=Synced with {0} at block {1}
mainView.footer.btcInfo.connectingTo=Connecting to
mainView.footer.btcInfo.connectionFailed=Connection failed to
mainView.footer.p2pInfo=Monero network peers: {0} / Haveno network peers: {1}
mainView.footer.xmrPeers=Monero network peers: {0}
mainView.footer.p2pPeers=Haveno network peers: {0}
mainView.bootstrapState.connectionToTorNetwork=(1/4) Connecting to Tor network...
mainView.bootstrapState.torNodeCreated=(2/4) Tor node created

View File

@ -253,7 +253,8 @@ mainView.footer.btcInfo.synchronizingWith=Synchronizace s {0} v bloku: {1} / {2}
mainView.footer.btcInfo.synchronizedWith=Synchronizováno s {0} v bloku {1}
mainView.footer.btcInfo.connectingTo=Připojování
mainView.footer.btcInfo.connectionFailed=Připojení se nezdařilo
mainView.footer.p2pInfo=Bitcoin síťové nody: {0} / Haveno síťové nody: {1}
mainView.footer.xmrPeers=Monero síťové nody: {0}
mainView.footer.p2pPeers=Haveno síťové nody: {0}
mainView.bootstrapState.connectionToTorNetwork=(1/4) Připojování do sítě Tor...
mainView.bootstrapState.torNodeCreated=(2/4) Tor node vytvořen

View File

@ -253,7 +253,8 @@ mainView.footer.btcInfo.synchronizingWith=Synchronisierung mit {0} bei Block: {1
mainView.footer.btcInfo.synchronizedWith=Synchronisierung mit {0} bei Block {1}
mainView.footer.btcInfo.connectingTo=Verbinde mit
mainView.footer.btcInfo.connectionFailed=Verbindung fehlgeschlagen zu
mainView.footer.p2pInfo=Bitcoin Netzwerk Peers: {0} / Haveno Netzwerk Peers: {1}
mainView.footer.xmrPeers=Monero Netzwerk Peers: {0}
mainView.footer.p2pPeers=Haveno Netzwerk Peers: {0}
mainView.bootstrapState.connectionToTorNetwork=(1/4) Verbinde mit Tor-Netzwerk...
mainView.bootstrapState.torNodeCreated=(2/4) Tor-Knoten erstellt

View File

@ -253,7 +253,8 @@ mainView.footer.btcInfo.synchronizingWith=Sincronizando con {0} en el bloque: {1
mainView.footer.btcInfo.synchronizedWith=Sincronizado con {0} en el bloque {1}
mainView.footer.btcInfo.connectingTo=Conectando a
mainView.footer.btcInfo.connectionFailed=Conexión fallida a
mainView.footer.p2pInfo=Pares de Bitcoin: {0} / Pares de la red de Haveno: {1}
mainView.footer.xmrPeers=Pares de Monero: {0}
mainView.footer.p2pPeers=Pares de la red de Haveno: {0}
mainView.bootstrapState.connectionToTorNetwork=(1/4) Conectando a la red Tor...
mainView.bootstrapState.torNodeCreated=(2/4) Nodo Tor creado

View File

@ -253,7 +253,8 @@ mainView.footer.btcInfo.synchronizingWith=Synchronizing with {0} at block: {1} /
mainView.footer.btcInfo.synchronizedWith=Synced with {0} at block {1}
mainView.footer.btcInfo.connectingTo=در حال ایجاد ارتباط با
mainView.footer.btcInfo.connectionFailed=Connection failed to
mainView.footer.p2pInfo=Bitcoin network peers: {0} / Haveno network peers: {1}
mainView.footer.xmrPeers=Monero network peers: {0}
mainView.footer.p2pPeers=Haveno network peers: {0}
mainView.bootstrapState.connectionToTorNetwork=(1/4) در حال ارتباط با شبکه Tor ...
mainView.bootstrapState.torNodeCreated=(2/4) گره Tor ایجاد شد

View File

@ -253,7 +253,8 @@ mainView.footer.btcInfo.synchronizingWith=Synchronisation avec {0} au block: {1}
mainView.footer.btcInfo.synchronizedWith=Synchronisé avec {0} au block {1}
mainView.footer.btcInfo.connectingTo=Se connecte à
mainView.footer.btcInfo.connectionFailed=Échec de la connexion à
mainView.footer.p2pInfo=Pairs du réseau bitcoin: {0} / pairs du réseau Haveno: {1}
mainView.footer.xmrPeers=Pairs du réseau Monero: {0}
mainView.footer.p2pPeers=Pairs du réseau Haveno: {0}
mainView.bootstrapState.connectionToTorNetwork=(1/4) Connection au réseau Tor...
mainView.bootstrapState.torNodeCreated=(2/4) Noeud Tor créé

View File

@ -253,7 +253,8 @@ mainView.footer.btcInfo.synchronizingWith=Synchronizing with {0} at block: {1} /
mainView.footer.btcInfo.synchronizedWith=Synced with {0} at block {1}
mainView.footer.btcInfo.connectingTo=Connessione a
mainView.footer.btcInfo.connectionFailed=Connessione fallita
mainView.footer.p2pInfo=Bitcoin network peers: {0} / Haveno network peers: {1}
mainView.footer.xmrPeers=Monero network peers: {0}
mainView.footer.p2pPeers=Haveno network peers: {0}
mainView.bootstrapState.connectionToTorNetwork=(1/4) Connessione alla rete Tor...
mainView.bootstrapState.torNodeCreated=(2/4) Nodo Tor creato

View File

@ -253,7 +253,8 @@ mainView.footer.btcInfo.synchronizingWith={0}と同期中、ブロック: {1} /
mainView.footer.btcInfo.synchronizedWith={0}と同期されています、ブロック{1}に
mainView.footer.btcInfo.connectingTo=接続中:
mainView.footer.btcInfo.connectionFailed=接続失敗
mainView.footer.p2pInfo=ビットコインネットワークピア: {0} / Havenoネットワークピア: {1}
mainView.footer.xmrPeers=Moneroネットワークピア: {0}
mainView.footer.p2pPeers=Havenoネットワークピア: {0}
mainView.bootstrapState.connectionToTorNetwork=(1/4) Torネットワークに接続中...
mainView.bootstrapState.torNodeCreated=(2/4) Torードが作成されました

View File

@ -256,7 +256,8 @@ mainView.footer.btcInfo.synchronizingWith=Synchronizing with {0} at block: {1} /
mainView.footer.btcInfo.synchronizedWith=Synced with {0} at block {1}
mainView.footer.btcInfo.connectingTo=Conectando-se a
mainView.footer.btcInfo.connectionFailed=Falha na conexão à
mainView.footer.p2pInfo=Bitcoin network peers: {0} / Haveno network peers: {1}
mainView.footer.xmrPeers=Monero network peers: {0}
mainView.footer.p2pPeers=Haveno network peers: {0}
mainView.bootstrapState.connectionToTorNetwork=(1/4) Conectando-se à rede Tor...
mainView.bootstrapState.torNodeCreated=(2/4) Nó da rede Tor criado

View File

@ -253,7 +253,8 @@ mainView.footer.btcInfo.synchronizingWith=Synchronizing with {0} at block: {1} /
mainView.footer.btcInfo.synchronizedWith=Synced with {0} at block {1}
mainView.footer.btcInfo.connectingTo=Conectando à
mainView.footer.btcInfo.connectionFailed=Connection failed to
mainView.footer.p2pInfo=Bitcoin network peers: {0} / Haveno network peers: {1}
mainView.footer.xmrPeers=Monero network peers: {0}
mainView.footer.p2pPeers=Haveno network peers: {0}
mainView.bootstrapState.connectionToTorNetwork=(1/4) Conectando à rede Tor....
mainView.bootstrapState.torNodeCreated=(2/4) Nó da rede Tor criado

View File

@ -253,7 +253,8 @@ mainView.footer.btcInfo.synchronizingWith=Synchronizing with {0} at block: {1} /
mainView.footer.btcInfo.synchronizedWith=Synced with {0} at block {1}
mainView.footer.btcInfo.connectingTo=Подключение к
mainView.footer.btcInfo.connectionFailed=Connection failed to
mainView.footer.p2pInfo=Bitcoin network peers: {0} / Haveno network peers: {1}
mainView.footer.xmrPeers=Monero network peers: {0}
mainView.footer.p2pPeers=Haveno network peers: {0}
mainView.bootstrapState.connectionToTorNetwork=(1/4) Подключение к сети Tor...
mainView.bootstrapState.torNodeCreated=(2/4) Создан узел Tor

View File

@ -253,7 +253,8 @@ mainView.footer.btcInfo.synchronizingWith=Synchronizing with {0} at block: {1} /
mainView.footer.btcInfo.synchronizedWith=Synced with {0} at block {1}
mainView.footer.btcInfo.connectingTo=Connecting to
mainView.footer.btcInfo.connectionFailed=Connection failed to
mainView.footer.p2pInfo=Bitcoin network peers: {0} / Haveno network peers: {1}
mainView.footer.xmrPeers=Monero network peers: {0}
mainView.footer.p2pPeers=Haveno network peers: {0}
mainView.bootstrapState.connectionToTorNetwork=(1/4) เชื่อมต่อไปยัง Tor network...
mainView.bootstrapState.torNodeCreated=(2/4) Tor node ถูกสร้างแล้ว

View File

@ -253,7 +253,8 @@ mainView.footer.btcInfo.synchronizingWith=Synchronizing with {0} at block: {1} /
mainView.footer.btcInfo.synchronizedWith=Synced with {0} at block {1}
mainView.footer.btcInfo.connectingTo=Đang kết nối với
mainView.footer.btcInfo.connectionFailed=Connection failed to
mainView.footer.p2pInfo=Bitcoin network peers: {0} / Haveno network peers: {1}
mainView.footer.xmrPeers=Monero network peers: {0}
mainView.footer.p2pPeers=Haveno network peers: {0}
mainView.bootstrapState.connectionToTorNetwork=(1/4) Kết nối với mạng ...
mainView.bootstrapState.torNodeCreated=(2/4) Nút Tor được tạo

View File

@ -253,7 +253,8 @@ mainView.footer.btcInfo.synchronizingWith=正在通过{0}同步区块:{1}/{2}
mainView.footer.btcInfo.synchronizedWith=已通过{0}同步至区块{1}
mainView.footer.btcInfo.connectingTo=连接至
mainView.footer.btcInfo.connectionFailed=连接失败:
mainView.footer.p2pInfo=比特币网络节点:{0} / Haveno 网络节点:{1}
mainView.footer.xmrPeers=Monero网络节点{0}
mainView.footer.p2pPeers=Haveno 网络节点:{0}
mainView.bootstrapState.connectionToTorNetwork=(1/4) 连接至 Tor 网络...
mainView.bootstrapState.torNodeCreated=(2/4) Tor 节点已创建

View File

@ -253,7 +253,8 @@ mainView.footer.btcInfo.synchronizingWith=Synchronizing with {0} at block: {1} /
mainView.footer.btcInfo.synchronizedWith=Synced with {0} at block {1}
mainView.footer.btcInfo.connectingTo=連接至
mainView.footer.btcInfo.connectionFailed=連接失敗:
mainView.footer.p2pInfo=比特幣網絡節點:{0} / Haveno 網絡節點:{1}
mainView.footer.xmrPeers=Monero網絡節點{0}
mainView.footer.p2pPeers=Haveno 網絡節點:{0}
mainView.bootstrapState.connectionToTorNetwork=(1/4) 連接至 Tor 網絡...
mainView.bootstrapState.torNodeCreated=(2/4) Tor 節點已創建