Browse Source

connection toggle tooltip

bwt
Craig Raw 4 years ago
parent
commit
9a80065605
  1. 1
      src/main/java/com/sparrowwallet/sparrow/AppController.java
  2. 6
      src/main/resources/com/sparrowwallet/sparrow/app.fxml

1
src/main/java/com/sparrowwallet/sparrow/AppController.java

@ -234,6 +234,7 @@ public class AppController implements Initializable {
});
onlineProperty.bindBidirectional(serverToggle.selectedProperty());
onlineProperty().addListener((observable, oldValue, newValue) -> serverToggle.setTooltip(new Tooltip(newValue ? "Connected to " + Config.get().getElectrumServer() : "Disconnected")));
Config config = Config.get();
connectionService = createConnectionService();

6
src/main/resources/com/sparrowwallet/sparrow/app.fxml

@ -76,7 +76,11 @@
<StatusBar fx:id="statusBar" text="" minHeight="36">
<rightItems>
<UnlabeledToggleSwitch fx:id="serverToggle" />
<UnlabeledToggleSwitch fx:id="serverToggle">
<tooltip>
<Tooltip text="Disconnected" />
</tooltip>
</UnlabeledToggleSwitch>
</rightItems>
</StatusBar>
</children>

Loading…
Cancel
Save