Avoid unnecessary item map refreshes during sorting
This commit is contained in:
parent
a854ce9dce
commit
ae21b3113e
|
@ -1461,9 +1461,10 @@ Zotero.ItemTreeView.prototype.sort = function (itemIDs) {
|
||||||
|
|
||||||
for (let i = parentRows.length - 1; i >= 0; i--) {
|
for (let i = parentRows.length - 1; i >= 0; i--) {
|
||||||
let row = parentRows[i];
|
let row = parentRows[i];
|
||||||
this._closeContainer(row);
|
this._closeContainer(row, true);
|
||||||
this.toggleOpenState(row);
|
this.toggleOpenState(row, true);
|
||||||
}
|
}
|
||||||
|
this._refreshItemRowMap();
|
||||||
|
|
||||||
let numSorted = itemIDs.length - skipped.length;
|
let numSorted = itemIDs.length - skipped.length;
|
||||||
if (numSorted) {
|
if (numSorted) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user