Restore use of beginUpdateBatch/endUpdateBatch in itemTreeView notify()
Not sure why this was disabled, but it prevents flashing of child items when a child item is modified.
This commit is contained in:
parent
ae21b3113e
commit
202192bc72
1 changed files with 2 additions and 2 deletions
|
@ -649,7 +649,7 @@ Zotero.ItemTreeView.prototype.notify = Zotero.Promise.coroutine(function* (actio
|
|||
}
|
||||
|
||||
this.selection.selectEventsSuppressed = true;
|
||||
//this._treebox.beginUpdateBatch();
|
||||
this._treebox.beginUpdateBatch();
|
||||
|
||||
if ((action == 'remove' && !collectionTreeRow.isLibrary(true))
|
||||
|| action == 'delete' || action == 'trash'
|
||||
|
@ -1020,7 +1020,7 @@ Zotero.ItemTreeView.prototype.notify = Zotero.Promise.coroutine(function* (actio
|
|||
|
||||
this._updateIntroText();
|
||||
|
||||
//this._treebox.endUpdateBatch();
|
||||
this._treebox.endUpdateBatch();
|
||||
|
||||
// If we made changes to the selection (including reselecting the same item, which will register as
|
||||
// a selection when selectEventsSuppressed is set to false), wait for a select event on the tree
|
||||
|
|
Loading…
Add table
Reference in a new issue