Fix additional causes of high CPU use from items list

This commit is contained in:
Dan Stillman 2015-10-13 00:33:34 -04:00
parent 493d37d1c7
commit 5d8670db1d

View file

@ -2054,6 +2054,7 @@ Zotero.Item.prototype.getFilePathAsync = Zotero.Promise.coroutine(function* () {
// No associated files for linked URLs
if (linkMode == Zotero.Attachments.LINK_MODE_LINKED_URL) {
this._updateAttachmentStates(false);
return false;
}
@ -2137,6 +2138,8 @@ Zotero.Item.prototype.getFilePathAsync = Zotero.Promise.coroutine(function* () {
return false;
}
this._updateAttachmentStates(true);
return file.path;
}
@ -2146,6 +2149,8 @@ Zotero.Item.prototype.getFilePathAsync = Zotero.Promise.coroutine(function* () {
return false;
}
this._updateAttachmentStates(true);
return path;
});