File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
AnkiDroid/src/main/java/com/ichi2/anki Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1684,13 +1684,13 @@ open class DeckPicker :
16841684 if (previous < 20600123 ) {
16851685 Timber .i(" Fixing font-family definition in templates" )
16861686 try {
1687- val models = getColUnsafe.notetypes
1688- for (m in models .all()) {
1689- val css = m .getString(" css" )
1687+ val notetypes = getColUnsafe.notetypes
1688+ for (noteType in notetypes .all()) {
1689+ val css = noteType .getString(" css" )
16901690 @Suppress(" SpellCheckingInspection" )
16911691 if (css.contains(" font-familiy" )) {
1692- m .put(" css" , css.replace(" font-familiy" , " font-family" ))
1693- models .save(m )
1692+ noteType .put(" css" , css.replace(" font-familiy" , " font-family" ))
1693+ notetypes .save(noteType )
16941694 }
16951695 }
16961696 } catch (e: JSONException ) {
You can’t perform that action at this time.
0 commit comments