Merge pull request #12211 from Snuffleupagus/_saveInProgress-reset
Wait until saving has finished before resetting `PDFViewerApplication._saveInProgress` (PR 12137 follow-up)
This commit is contained in:
commit
67c361b2f4
@ -939,8 +939,10 @@ const PDFViewerApplication = {
|
|||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
this.download();
|
this.download();
|
||||||
}); // Error occurred, try downloading with the URL.
|
})
|
||||||
this._saveInProgress = false;
|
.finally(() => {
|
||||||
|
this._saveInProgress = false;
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user