From 19b12b613bd2184d139c79c782e8b5f88108078a Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Thu, 29 Feb 2024 10:44:05 -0800 Subject: [PATCH] Preferences: Dispatch synctopreference *before* setting preference Matches pre-fx102 behavior. --- chrome/content/zotero/preferences/preferences.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/preferences/preferences.js b/chrome/content/zotero/preferences/preferences.js index 3cd3a8007d..8ed3e53f0c 100644 --- a/chrome/content/zotero/preferences/preferences.js +++ b/chrome/content/zotero/preferences/preferences.js @@ -400,8 +400,8 @@ ${str} _syncToPrefOnModify(event) { if (event.currentTarget.getAttribute('preference')) { let value = this._useChecked(event.currentTarget) ? event.currentTarget.checked : event.currentTarget.value; - Zotero.Prefs.set(event.currentTarget.getAttribute('preference'), value, true); event.currentTarget.dispatchEvent(new Event('synctopreference')); + Zotero.Prefs.set(event.currentTarget.getAttribute('preference'), value, true); } },