Make cancellable withour exception
This commit is contained in:
parent
bbd4ce7c07
commit
2d809c955b
1 changed files with 7 additions and 2 deletions
|
@ -27,6 +27,7 @@ class CheckFactory {
|
|||
) {
|
||||
this.checkOptions = new DefaultCheckOptions().mergeWith(passedOptions);
|
||||
}
|
||||
|
||||
private checkOptions: DS4CheckFactoryOptions;
|
||||
|
||||
async execute(): Promise<void> {
|
||||
|
@ -126,7 +127,9 @@ async function askGmModifier(
|
|||
new Dialog(
|
||||
{
|
||||
title: title ?? "Roll Options",
|
||||
close: (html: JQuery) => resolve(null),
|
||||
close: () => {
|
||||
// Don't do anything
|
||||
},
|
||||
content: renderedHtml,
|
||||
buttons: {
|
||||
ok: {
|
||||
|
@ -142,7 +145,9 @@ async function askGmModifier(
|
|||
},
|
||||
cancel: {
|
||||
label: "Cancel",
|
||||
callback: (html: JQuery) => resolve(null),
|
||||
callback: () => {
|
||||
// Don't do anything
|
||||
},
|
||||
},
|
||||
},
|
||||
default: "ok",
|
||||
|
|
Loading…
Reference in a new issue