Remove Zotero.suppressUIUpdates

Now handled by notifier flags
This commit is contained in:
Dan Stillman 2015-06-23 16:31:40 -04:00
parent 12bea4b7ea
commit 27f6f018d3
3 changed files with 0 additions and 30 deletions

View file

@ -873,11 +873,6 @@ Zotero.CollectionTreeView.prototype.expandToCollection = Zotero.Promise.coroutin
///
////////////////////////////////////////////////////////////////////////////////
Zotero.CollectionTreeView.prototype.selectByID = Zotero.Promise.coroutine(function* (id) {
if (Zotero.suppressUIUpdates) {
Zotero.debug("UI updates suppressed -- not changing selection");
return false;
}
var type = id[0];
id = ('' + id).substr(1);
@ -922,11 +917,6 @@ Zotero.CollectionTreeView.prototype.restoreSelection = Zotero.Promise.coroutine(
* @param {Integer} libraryID Library to select
*/
Zotero.CollectionTreeView.prototype.selectLibrary = Zotero.Promise.coroutine(function* (libraryID) {
if (Zotero.suppressUIUpdates) {
Zotero.debug("UI updates suppressed -- not changing library selection");
return false;
}
// Select local library
if (!libraryID) {
this._treebox.ensureRowIsVisible(0);
@ -966,11 +956,6 @@ Zotero.CollectionTreeView.prototype.selectSearch = function (id) {
Zotero.CollectionTreeView.prototype.selectTrash = Zotero.Promise.coroutine(function* (libraryID) {
if (Zotero.suppressUIUpdates) {
Zotero.debug("UI updates suppressed -- not changing library selection");
return false;
}
// Check if trash is already selected
if (this.selection.currentIndex != -1) {
let itemGroup = this.getRow(this.selection.currentIndex);

View file

@ -917,10 +917,6 @@ Zotero.ItemTreeView.prototype.notify = Zotero.Promise.coroutine(function* (actio
yield this.selectItem(selectItem);
}*/
if (Zotero.suppressUIUpdates) {
yield this.rememberSelection(savedSelection);
}
//this._treebox.endUpdateBatch();
if (madeChanges) {
var deferred = Zotero.Promise.defer();
@ -1601,12 +1597,6 @@ Zotero.ItemTreeView.prototype.sort = Zotero.Promise.coroutine(function* (itemID)
* Select an item
*/
Zotero.ItemTreeView.prototype.selectItem = Zotero.Promise.coroutine(function* (id, expand, noRecurse) {
// Don't change selection if UI updates are disabled (e.g., during sync)
if (Zotero.suppressUIUpdates) {
Zotero.debug("Sync is running; not selecting item");
return false;
}
// If no row map, we're probably in the process of switching collections,
// so store the item to select on the item group for later
if (!this._rowMap) {

View file

@ -98,11 +98,6 @@ Components.utils.import("resource://gre/modules/osfile.jsm");
}
});
/**
* @property {Boolean} suppressUIUpdates Don't update UI on Notifier triggers
*/
this.suppressUIUpdates = false;
/**
* @property {Boolean} closing True if the application is closing.
*/