Preferences: Dispatch synctopreference *before* setting preference
Matches pre-fx102 behavior.
This commit is contained in:
parent
ae441c6db1
commit
19b12b613b
1 changed files with 1 additions and 1 deletions
|
@ -400,8 +400,8 @@ ${str}
|
||||||
_syncToPrefOnModify(event) {
|
_syncToPrefOnModify(event) {
|
||||||
if (event.currentTarget.getAttribute('preference')) {
|
if (event.currentTarget.getAttribute('preference')) {
|
||||||
let value = this._useChecked(event.currentTarget) ? event.currentTarget.checked : event.currentTarget.value;
|
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'));
|
event.currentTarget.dispatchEvent(new Event('synctopreference'));
|
||||||
|
Zotero.Prefs.set(event.currentTarget.getAttribute('preference'), value, true);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue