mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-01-09 12:30:15 +00:00
fix connected status in network settings for current connection
This commit is contained in:
parent
2dc7405f82
commit
89007c496e
1 changed files with 1 additions and 1 deletions
|
@ -521,7 +521,7 @@ public class NetworkSettingsView extends ActivatableView<GridPane, Void> {
|
||||||
if (connectionService.isShutDownStarted()) return; // ignore if shutting down
|
if (connectionService.isShutDownStarted()) return; // ignore if shutting down
|
||||||
moneroNetworkListItems.clear();
|
moneroNetworkListItems.clear();
|
||||||
moneroNetworkListItems.setAll(connectionService.getConnections().stream()
|
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()));
|
.collect(Collectors.toList()));
|
||||||
updateChainHeightTextField(connectionService.chainHeightProperty().get());
|
updateChainHeightTextField(connectionService.chainHeightProperty().get());
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue