show warning dialog on submit bug report to redirect users to support where appropriate

This commit is contained in:
Craig Raw 2023-07-17 11:44:16 +02:00
parent 31bd64f821
commit ef67d1f33b

View file

@ -469,7 +469,17 @@ public class AppController implements Initializable {
}
public void submitBugReport(ActionEvent event) {
ButtonType supportType = new ButtonType("Get Support", ButtonBar.ButtonData.LEFT);
ButtonType bugType = new ButtonType("Submit Bug Report", ButtonBar.ButtonData.YES);
Optional<ButtonType> optResponse = showWarningDialog("Submit Bug Report", "Please note that this facility is for bug reports and feature requests only. There is a community of Sparrow users who can assist with support requests.", supportType, bugType);
if(optResponse.isPresent()) {
if(optResponse.get() == bugType) {
AppServices.get().getApplication().getHostServices().showDocument("https://sparrowwallet.com/submitbugreport");
} else {
openSupport(event);
}
}
}
public void showAbout(ActionEvent event) {