mirror of
https://github.com/zotero/zotero.git
synced 2026-10-04 02:31:47 +00:00
Fix dense call to setItemDownloadPercentage freezes app (#4979)
This commit is contained in:
parent
ddb1daabbc
commit
59b3268d01
1 changed files with 2 additions and 2 deletions
|
|
@ -64,7 +64,7 @@ Zotero.Sync.Storage = new function () {
|
|||
* @param {String} libraryKey
|
||||
* @param {Number|NULL}
|
||||
*/
|
||||
this.setItemDownloadPercentage = function (libraryKey, percentage) {
|
||||
this.setItemDownloadPercentage = Zotero.Utilities.throttle(function (libraryKey, percentage) {
|
||||
Zotero.debug("Setting image download percentage to " + percentage
|
||||
+ " for item " + libraryKey);
|
||||
|
||||
|
|
@ -93,7 +93,7 @@ Zotero.Sync.Storage = new function () {
|
|||
}
|
||||
Zotero.Notifier.trigger('redraw', 'item', parentItem.id, { column: "hasAttachment" });
|
||||
}
|
||||
}
|
||||
}, 100);
|
||||
|
||||
|
||||
function error(e) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue