From 029c9fc251d891576c2cdccc14d2bc1bb5979608 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Thu, 12 Apr 2018 13:59:57 +0300 Subject: [PATCH] Don't refresh citations when citation delaying is enabled via doc prefs --- chrome/content/zotero/xpcom/integration.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index a0ef7f288..e2fb5ca51 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -705,6 +705,9 @@ Zotero.Integration.Interface.prototype.setDocPrefs = Zotero.Promise.coroutine(fu // Refresh contents this._session.fields = new Zotero.Integration.Fields(this._session, this._doc); this._session.fields.ignoreEmptyBibliography = false; + + if (this._session.data.prefs.delayCitationUpdates) return; + yield this._session.fields.updateSession(FORCE_CITATIONS_RESET_TEXT); return this._session.fields.updateDocument(FORCE_CITATIONS_RESET_TEXT, true, true); });