Revert "Fix empty Quick Copy locale dropdown"

This reverts commit 0dfe276d9b.

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
This commit is contained in:
Dan Stillman 2024-02-19 03:30:55 -05:00
parent 009a2ca38a
commit 5940b63908

View file

@ -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();
}),