Merge pull request #418 from glutanimate/addcards-addnote-hook

Add hook for AddCards.addNote
This commit is contained in:
Damien Elmes 2020-01-09 08:05:20 +10:00 committed by GitHub
commit 9704346ecf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -197,6 +197,7 @@ question on all cards."""
self.addHistory(note)
self.mw.requireReset()
self.previousNote = note
runHook("AddCards.noteAdded", note)
return note
def addCards(self):