mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -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:
|
||||
print("ignored late blur")
|
||||
return
|
||||
txt = self.mungeHTML(txt)
|
||||
self.note.fields[ord] = txt
|
||||
|
||||
self.note.fields[ord] = self.mungeHTML(txt)
|
||||
|
||||
if not self.addMode:
|
||||
self.note.flush()
|
||||
self.mw.requireReset()
|
||||
|
|
Loading…
Reference in a new issue