mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
onModelChange save note
I like the way onModelChange is done. Except that you forget to use the note you computed.
This commit is contained in:
parent
36ea980725
commit
936bb31997
1 changed files with 3 additions and 0 deletions
|
@ -114,6 +114,9 @@ class AddCards(QDialog):
|
||||||
except IndexError:
|
except IndexError:
|
||||||
pass
|
pass
|
||||||
self.removeTempNote(oldNote)
|
self.removeTempNote(oldNote)
|
||||||
|
self.editor.note = note
|
||||||
|
# When on model change is called, reset is necessarily called.
|
||||||
|
# Reset load note, so it is not required to load it here.
|
||||||
|
|
||||||
def onReset(self, model: None = None, keep: bool = False) -> None:
|
def onReset(self, model: None = None, keep: bool = False) -> None:
|
||||||
oldNote = self.editor.note
|
oldNote = self.editor.note
|
||||||
|
|
Loading…
Reference in a new issue