Only update the Document Properties if the dialog is still visible when the dataAvailablePromise is resolved
This commit is contained in:
parent
c7a0b68d9a
commit
edfc78dfe7
@ -74,6 +74,11 @@ var DocumentProperties = {
|
||||
},
|
||||
|
||||
getProperties: function documentPropertiesGetProperties() {
|
||||
if (!this.visible) {
|
||||
// If the dialog was closed before dataAvailablePromise was resolved,
|
||||
// don't bother updating the properties.
|
||||
return;
|
||||
}
|
||||
// Get the file name.
|
||||
this.fileName = getPDFFileNameFromURL(PDFView.url);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user