"Cancel bug" fix #188
This commit is contained in:
parent
d5c760e72b
commit
e42ba35697
2 changed files with 14 additions and 6 deletions
|
|
@ -505,12 +505,12 @@ export class ModalHelper {
|
|||
console.warn(previewModalResult.error);
|
||||
new Notice(previewModalResult.error.toString());
|
||||
previewModal.close();
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (previewModalResult.code === ModalResultCode.CLOSE) {
|
||||
// modal is already being closed
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue