From 5940b63908177b413bda5ed1131d8307fc69ba9d Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 19 Feb 2024 03:30:55 -0500 Subject: [PATCH] Revert "Fix empty Quick Copy locale dropdown" This reverts commit 0dfe276d9be58373c1e43c56d85dcf4b5bfd9489. Causing a hang when some people mouse over the Export tab: https://forums.zotero.org/discussion/111956/zotero-7-beta-freezes-in-the-settings-panel --- chrome/content/zotero/preferences/preferences_export.jsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/chrome/content/zotero/preferences/preferences_export.jsx b/chrome/content/zotero/preferences/preferences_export.jsx index a76e13aa90..2a6db92ebf 100644 --- a/chrome/content/zotero/preferences/preferences_export.jsx +++ b/chrome/content/zotero/preferences/preferences_export.jsx @@ -69,12 +69,11 @@ 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(); }),