Browse Source

indicate welcome dialog connections are demonstration only

terminal
Craig Raw 4 years ago
parent
commit
11e46155a1
  1. 12
      src/main/java/com/sparrowwallet/sparrow/WelcomeController.java
  2. 2
      src/main/java/com/sparrowwallet/sparrow/io/Config.java

12
src/main/java/com/sparrowwallet/sparrow/WelcomeController.java

@ -49,7 +49,7 @@ public class WelcomeController {
welcomeBox.getStyleClass().add("offline"); welcomeBox.getStyleClass().add("offline");
serverStatus.setText("Offline"); serverStatus.setText("Offline");
serverToggle.selectedProperty().addListener((observable, oldValue, newValue) -> { serverToggle.selectedProperty().addListener((observable, oldValue, newValue) -> {
serverStatus.setText(newValue ? "Connected" : "Offline"); serverStatus.setText(newValue ? "Connected (demonstration only)" : "Offline");
}); });
} }
@ -62,7 +62,7 @@ public class WelcomeController {
PauseTransition wait = new PauseTransition(Duration.millis(200)); PauseTransition wait = new PauseTransition(Duration.millis(200));
wait.setOnFinished((e) -> { wait.setOnFinished((e) -> {
serverToggle.setSelected(true); serverToggle.setSelected(true);
serverStatus.setText("Connected to a Public Server"); serverStatus.setText("Connected to a Public Server (demonstration only)");
}); });
wait.play(); wait.play();
return true; return true;
@ -74,7 +74,7 @@ public class WelcomeController {
welcomeBox.getStyleClass().clear(); welcomeBox.getStyleClass().clear();
welcomeBox.getStyleClass().add("bitcoin-core"); welcomeBox.getStyleClass().add("bitcoin-core");
serverToggle.setSelected(true); serverToggle.setSelected(true);
serverStatus.setText("Connected to Bitcoin Core"); serverStatus.setText("Connected to Bitcoin Core (demonstration only)");
return true; return true;
} }
@ -84,7 +84,7 @@ public class WelcomeController {
welcomeBox.getStyleClass().clear(); welcomeBox.getStyleClass().clear();
welcomeBox.getStyleClass().add("private-electrum"); welcomeBox.getStyleClass().add("private-electrum");
serverToggle.setSelected(true); serverToggle.setSelected(true);
serverStatus.setText("Connected to a Private Electrum Server"); serverStatus.setText("Connected to a Private Electrum Server (demonstration only)");
} }
return false; return false;
@ -111,7 +111,7 @@ public class WelcomeController {
welcomeBox.getStyleClass().clear(); welcomeBox.getStyleClass().clear();
welcomeBox.getStyleClass().add("public-electrum"); welcomeBox.getStyleClass().add("public-electrum");
serverToggle.setSelected(true); serverToggle.setSelected(true);
serverStatus.setText("Connected to a Public Server"); serverStatus.setText("Connected to a Public Server (demonstration only)");
return true; return true;
} }
@ -121,7 +121,7 @@ public class WelcomeController {
welcomeBox.getStyleClass().clear(); welcomeBox.getStyleClass().clear();
welcomeBox.getStyleClass().add("bitcoin-core"); welcomeBox.getStyleClass().add("bitcoin-core");
serverToggle.setSelected(true); serverToggle.setSelected(true);
serverStatus.setText("Connected to Bitcoin Core"); serverStatus.setText("Connected to Bitcoin Core (demonstration only)");
return true; return true;
} }

2
src/main/java/com/sparrowwallet/sparrow/io/Config.java

@ -80,7 +80,7 @@ public class Config {
if(config != null) { if(config != null) {
return config; return config;
} }
} catch (IOException e) { } catch(Exception e) {
log.error("Error opening " + configFile.getAbsolutePath(), e); log.error("Error opening " + configFile.getAbsolutePath(), e);
//Ignore and assume no config //Ignore and assume no config
} }

Loading…
Cancel
Save