mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 15:10:44 +01:00
Fix node display
This commit is contained in:
parent
a996754e06
commit
8865d9bc93
1 changed files with 6 additions and 4 deletions
|
@ -114,11 +114,13 @@ public class P2pNetworkListItem {
|
||||||
ConnectionState connectionState = connection.getConnectionState();
|
ConnectionState connectionState = connection.getConnectionState();
|
||||||
if (connectionState.getPeerType() == PeerType.DIRECT_MSG_PEER) {
|
if (connectionState.getPeerType() == PeerType.DIRECT_MSG_PEER) {
|
||||||
peerType.set(Res.get("settings.net.directPeer"));
|
peerType.set(Res.get("settings.net.directPeer"));
|
||||||
} else if (connectionState.getPeerType() == PeerType.INITIAL_DATA_EXCHANGE) {
|
|
||||||
peerType.set(Res.get("settings.net.initialDataExchange",
|
|
||||||
connectionState.isSeedNode() ? Res.get("settings.net.seedNode") : Res.get("settings.net.peer")));
|
|
||||||
} else {
|
} else {
|
||||||
peerType.set(Res.get("settings.net.peer"));
|
String peerOrSeed = connectionState.isSeedNode() ? Res.get("settings.net.seedNode") : Res.get("settings.net.peer");
|
||||||
|
if (connectionState.getPeerType() == PeerType.INITIAL_DATA_EXCHANGE) {
|
||||||
|
peerType.set(Res.get("settings.net.initialDataExchange", peerOrSeed));
|
||||||
|
} else {
|
||||||
|
peerType.set(peerOrSeed);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue