From 89007c496e0b3f723ab6dd359baf246d4fab7f41 Mon Sep 17 00:00:00 2001 From: woodser Date: Fri, 27 Dec 2024 14:55:54 -0500 Subject: [PATCH] fix connected status in network settings for current connection --- .../desktop/main/settings/network/NetworkSettingsView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/src/main/java/haveno/desktop/main/settings/network/NetworkSettingsView.java b/desktop/src/main/java/haveno/desktop/main/settings/network/NetworkSettingsView.java index 546a5550..399f0508 100644 --- a/desktop/src/main/java/haveno/desktop/main/settings/network/NetworkSettingsView.java +++ b/desktop/src/main/java/haveno/desktop/main/settings/network/NetworkSettingsView.java @@ -521,7 +521,7 @@ public class NetworkSettingsView extends ActivatableView { if (connectionService.isShutDownStarted()) return; // ignore if shutting down moneroNetworkListItems.clear(); moneroNetworkListItems.setAll(connectionService.getConnections().stream() - .map(connection -> new MoneroNetworkListItem(connection, Boolean.TRUE.equals(connection.isConnected()) && connection == connectionService.getConnection())) + .map(connection -> new MoneroNetworkListItem(connection, connection == connectionService.getConnection() && Boolean.TRUE.equals(connectionService.isConnected()))) .collect(Collectors.toList())); updateChainHeightTextField(connectionService.chainHeightProperty().get()); });