"Cancel bug" fix #188

This commit is contained in:
ltctceplrm 2025-05-05 15:52:16 +02:00
parent d5c760e72b
commit e42ba35697
2 changed files with 14 additions and 6 deletions

View file

@ -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 {