add help menu item to open telegram support

This commit is contained in:
Craig Raw 2022-08-02 11:40:42 +02:00
parent cc8dd59dbc
commit 4c36d27d17
3 changed files with 6 additions and 1 deletions

View file

@ -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");
}

View file

@ -385,7 +385,7 @@ public class EntryCell extends TreeTableCell<Entry, Entry> {
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) {

View file

@ -125,6 +125,7 @@
<MenuItem mnemonicParsing="false" text="Show Introduction" onAction="#showIntroduction"/>
<MenuItem mnemonicParsing="false" text="Show Online Documentation" onAction="#showDocumentation"/>
<MenuItem mnemonicParsing="false" text="Show Log File" onAction="#showLogFile"/>
<MenuItem mnemonicParsing="false" text="Get Support" onAction="#openSupport"/>
<MenuItem mnemonicParsing="false" text="Submit Bug Report" onAction="#submitBugReport"/>
<MenuItem styleClass="osxHide" mnemonicParsing="false" text="About Sparrow" onAction="#showAbout"/>
</Menu>