Reset extensions.spellcheck.inline.max-misspellings

Closes #2108
This commit is contained in:
Dan Stillman 2022-02-02 05:48:23 -05:00
parent 060d2f1c37
commit 1ea1a134ba

View file

@ -49,7 +49,7 @@ Zotero.Prefs = new function(){
if (!fromVersion) { if (!fromVersion) {
fromVersion = 0; fromVersion = 0;
} }
var toVersion = 4; var toVersion = 5;
if (fromVersion < toVersion) { if (fromVersion < toVersion) {
for (var i = fromVersion + 1; i <= toVersion; i++) { for (var i = fromVersion + 1; i <= toVersion; i++) {
switch (i) { switch (i) {
@ -81,6 +81,10 @@ Zotero.Prefs = new function(){
case 4: case 4:
this.clear('fileHandler.pdf'); this.clear('fileHandler.pdf');
break; break;
case 5:
this.clear('extensions.spellcheck.inline.max-misspellings', true);
break;
} }
} }
this.set('prefVersion', toVersion); this.set('prefVersion', toVersion);