mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-24 12:46:45 +00:00
show warning dialog on submit bug report to redirect users to support where appropriate
This commit is contained in:
parent
31bd64f821
commit
ef67d1f33b
1 changed files with 11 additions and 1 deletions
|
@ -469,7 +469,17 @@ public class AppController implements Initializable {
|
|||
}
|
||||
|
||||
public void submitBugReport(ActionEvent event) {
|
||||
AppServices.get().getApplication().getHostServices().showDocument("https://sparrowwallet.com/submitbugreport");
|
||||
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) {
|
||||
|
|
Loading…
Reference in a new issue