Fix additional causes of high CPU use from items list
This commit is contained in:
parent
493d37d1c7
commit
5d8670db1d
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue