From 4c36d27d17f546da2ad139b2aaf423962712e7e4 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Tue, 2 Aug 2022 11:40:42 +0200 Subject: [PATCH] add help menu item to open telegram support --- src/main/java/com/sparrowwallet/sparrow/AppController.java | 4 ++++ .../java/com/sparrowwallet/sparrow/control/EntryCell.java | 2 +- src/main/resources/com/sparrowwallet/sparrow/app.fxml | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/AppController.java b/src/main/java/com/sparrowwallet/sparrow/AppController.java index 31d7f1c0..3c18029f 100644 --- a/src/main/java/com/sparrowwallet/sparrow/AppController.java +++ b/src/main/java/com/sparrowwallet/sparrow/AppController.java @@ -426,6 +426,10 @@ public class AppController implements Initializable { } } + public void openSupport(ActionEvent event) { + AppServices.get().getApplication().getHostServices().showDocument("https://sparrowwallet.com/opensupport"); + } + public void submitBugReport(ActionEvent event) { AppServices.get().getApplication().getHostServices().showDocument("https://sparrowwallet.com/submitbugreport"); } diff --git a/src/main/java/com/sparrowwallet/sparrow/control/EntryCell.java b/src/main/java/com/sparrowwallet/sparrow/control/EntryCell.java index 13f6dde8..90697f6f 100644 --- a/src/main/java/com/sparrowwallet/sparrow/control/EntryCell.java +++ b/src/main/java/com/sparrowwallet/sparrow/control/EntryCell.java @@ -385,7 +385,7 @@ public class EntryCell extends TreeTableCell { amount = String.format("%.2f", (double)vSizefromTip / 1000) + " kvB"; } - tooltip += "\nConfirms in: ±" + blocksFromTip + " block" + (blocksFromTip > 1 ? "s" : "") + " (" + amount + " from tip)"; + tooltip += "\nConfirms in: " + (blocksFromTip > 1 ? blocksFromTip + "+ blocks" : "1 block") + " (" + amount + " from tip)"; } if(feeRate != null) { diff --git a/src/main/resources/com/sparrowwallet/sparrow/app.fxml b/src/main/resources/com/sparrowwallet/sparrow/app.fxml index 3573b23c..6491dac8 100644 --- a/src/main/resources/com/sparrowwallet/sparrow/app.fxml +++ b/src/main/resources/com/sparrowwallet/sparrow/app.fxml @@ -125,6 +125,7 @@ +