diff --git a/chrome/content/zotero/preferences/preferences_export.jsx b/chrome/content/zotero/preferences/preferences_export.jsx index 2a6db92ebf..a76e13aa90 100644 --- a/chrome/content/zotero/preferences/preferences_export.jsx +++ b/chrome/content/zotero/preferences/preferences_export.jsx @@ -69,11 +69,12 @@ Zotero_Preferences.Export = { // Initialize locale drop-down var localeMenulist = document.getElementById("zotero-quickCopy-locale-menu"); Zotero.Styles.populateLocaleList(localeMenulist); + localeMenulist.addEventListener('syncfrompreference', () => { + this._lastSelectedLocale = Zotero.Prefs.get("export.quickCopy.locale"); + this.updateQuickCopyUI(); + }); localeMenulist.setAttribute('preference', "extensions.zotero.export.quickCopy.locale"); - this._lastSelectedLocale = Zotero.Prefs.get("export.quickCopy.locale"); - this.updateQuickCopyUI(); - yield this.refreshQuickCopySiteList(); }),