commit 029c9fc251d891576c2cdccc14d2bc1bb5979608
parent ea8003c5417bebd4cb125584ea949bf366ffc76b
Author: Adomas VenĨkauskas <adomas.ven@gmail.com>
Date: Thu, 12 Apr 2018 13:59:57 +0300
Don't refresh citations when citation delaying is enabled via doc prefs
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git 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);
});