add submit bug report to help menu

This commit is contained in:
Craig Raw 2021-04-21 10:37:41 +02:00
parent 58bee33383
commit f377f97931
2 changed files with 5 additions and 0 deletions

View file

@ -323,6 +323,10 @@ public class AppController implements Initializable {
} }
} }
public void submitBugReport(ActionEvent event) throws IOException {
AppServices.get().getApplication().getHostServices().showDocument("https://sparrowwallet.com/submitbugreport");
}
public void showAbout(ActionEvent event) { public void showAbout(ActionEvent event) {
Stage aboutStage = getAboutStage(); Stage aboutStage = getAboutStage();
aboutStage.show(); aboutStage.show();

View file

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