mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
Avoid extra assignment
This commit is contained in:
parent
f5479edacc
commit
ee3d4f5ad8
1 changed files with 3 additions and 2 deletions
|
@ -388,8 +388,9 @@ class Editor:
|
||||||
if nid != self.note.id:
|
if nid != self.note.id:
|
||||||
print("ignored late blur")
|
print("ignored late blur")
|
||||||
return
|
return
|
||||||
txt = self.mungeHTML(txt)
|
|
||||||
self.note.fields[ord] = txt
|
self.note.fields[ord] = self.mungeHTML(txt)
|
||||||
|
|
||||||
if not self.addMode:
|
if not self.addMode:
|
||||||
self.note.flush()
|
self.note.flush()
|
||||||
self.mw.requireReset()
|
self.mw.requireReset()
|
||||||
|
|
Loading…
Reference in a new issue