Main.instance.getHostServices().showDocument(url);
}
private void makePledge(Project p) {
log.info("Invoking pledge screen");
PledgeWindow window = Main.instance.<PledgeWindow>overlayUI("subwindows/pledge.fxml", "Pledge").controller;
window.project = p;
window.setLimits(p.getGoalAmount().subtract(Coin.valueOf(pledgedValue.get())), p.getMinPledgeAmount());
window.onSuccess = () -> {
mode = Mode.PLEDGED;
updateGUIForState();
};
}