mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-05 05:46:44 +00:00
indicate welcome dialog connections are demonstration only
This commit is contained in:
parent
f369b3ad00
commit
11e46155a1
2 changed files with 7 additions and 7 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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…
Reference in a new issue