From 202192bc72b0aab708d37b41a63a4d09dfd23580 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 27 Nov 2017 19:43:55 -0500 Subject: [PATCH] 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. --- chrome/content/zotero/xpcom/itemTreeView.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/itemTreeView.js b/chrome/content/zotero/xpcom/itemTreeView.js index fa66d79bb..76f52b2fa 100644 --- 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