Don't refresh citations when citation delaying is enabled via doc prefs
This commit is contained in:
parent
ea8003c541
commit
029c9fc251
|
@ -705,6 +705,9 @@ Zotero.Integration.Interface.prototype.setDocPrefs = Zotero.Promise.coroutine(fu
|
||||||
// Refresh contents
|
// Refresh contents
|
||||||
this._session.fields = new Zotero.Integration.Fields(this._session, this._doc);
|
this._session.fields = new Zotero.Integration.Fields(this._session, this._doc);
|
||||||
this._session.fields.ignoreEmptyBibliography = false;
|
this._session.fields.ignoreEmptyBibliography = false;
|
||||||
|
|
||||||
|
if (this._session.data.prefs.delayCitationUpdates) return;
|
||||||
|
|
||||||
yield this._session.fields.updateSession(FORCE_CITATIONS_RESET_TEXT);
|
yield this._session.fields.updateSession(FORCE_CITATIONS_RESET_TEXT);
|
||||||
return this._session.fields.updateDocument(FORCE_CITATIONS_RESET_TEXT, true, true);
|
return this._session.fields.updateDocument(FORCE_CITATIONS_RESET_TEXT, true, true);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user