fix connected status in network settings for current connection

This commit is contained in:
woodser 2024-12-27 14:55:54 -05:00
parent 2dc7405f82
commit 89007c496e

View file

@ -521,7 +521,7 @@ public class NetworkSettingsView extends ActivatableView<GridPane, Void> {
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());
});