Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit db8d29b

Browse files
Arthur-Milchiorlukstbit
authored andcommitted
NF: rename m to noteType in DeckPicker
1 parent fce8376 commit db8d29b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

AnkiDroid/src/main/java/com/ichi2/anki/DeckPicker.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)