commit 5d8670db1d4c20f0e833e30573a8d2bdcb3fdb4d parent 493d37d1c7650ff645213e7fc36844f2eafb3048 Author: Dan Stillman <dstillman@zotero.org> Date: Tue, 13 Oct 2015 00:33:34 -0400 Fix additional causes of high CPU use from items list Diffstat:
| M | chrome/content/zotero/xpcom/data/item.js | | | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js @@ -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; });