commit 202192bc72b0aab708d37b41a63a4d09dfd23580
parent ae21b3113eb1cc61ef04cb177f83028f3f9c3564
Author: Dan Stillman <dstillman@zotero.org>
Date: Mon, 27 Nov 2017 19:43:55 -0500
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.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/xpcom/itemTreeView.js b/chrome/content/zotero/xpcom/itemTreeView.js
@@ -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