Replace profileCreateDefaultFieldTemplates with optionsFieldTemplates
This commit is contained in:
parent
cc53510883
commit
c38c7fbda1
@ -48,7 +48,7 @@ const optionsVersionUpdates = [
|
|||||||
options.scanning.modifier = options.scanning.requireShift ? 'shift' : 'none';
|
options.scanning.modifier = options.scanning.requireShift ? 'shift' : 'none';
|
||||||
},
|
},
|
||||||
(options) => {
|
(options) => {
|
||||||
const fieldTemplatesDefault = profileCreateDefaultFieldTemplates();
|
const fieldTemplatesDefault = optionsFieldTemplates();
|
||||||
options.general.resultOutputMode = options.general.groupResults ? 'group' : 'split';
|
options.general.resultOutputMode = options.general.groupResults ? 'group' : 'split';
|
||||||
options.anki.fieldTemplates = (
|
options.anki.fieldTemplates = (
|
||||||
(utilStringHashCode(options.anki.fieldTemplates) !== -805327496) ?
|
(utilStringHashCode(options.anki.fieldTemplates) !== -805327496) ?
|
||||||
@ -58,12 +58,12 @@ const optionsVersionUpdates = [
|
|||||||
},
|
},
|
||||||
(options) => {
|
(options) => {
|
||||||
if (utilStringHashCode(options.anki.fieldTemplates) === 1285806040) {
|
if (utilStringHashCode(options.anki.fieldTemplates) === 1285806040) {
|
||||||
options.anki.fieldTemplates = profileCreateDefaultFieldTemplates();
|
options.anki.fieldTemplates = optionsFieldTemplates();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
(options) => {
|
(options) => {
|
||||||
if (utilStringHashCode(options.anki.fieldTemplates) === -250091611) {
|
if (utilStringHashCode(options.anki.fieldTemplates) === -250091611) {
|
||||||
options.anki.fieldTemplates = profileCreateDefaultFieldTemplates();
|
options.anki.fieldTemplates = optionsFieldTemplates();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user