Don't migrate prefs in new profile

This commit is contained in:
Dan Stillman 2023-09-29 01:45:53 -04:00
parent 2db19ad4ca
commit e3c64fb047

View file

@ -44,11 +44,11 @@ Zotero.Prefs = new function() {
// Process pref version updates
var fromVersion = this.get('prefVersion');
if (!fromVersion) {
fromVersion = 0;
}
var toVersion = 9;
if (fromVersion < toVersion) {
if (!fromVersion) {
this.set('prefVersion', toVersion);
}
else if (fromVersion < toVersion) {
for (var i = fromVersion + 1; i <= toVersion; i++) {
switch (i) {
case 1: