mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 06:07:11 -05:00
Add missing editor.nid initialization
This commit is contained in:
parent
c4a9ba254e
commit
723b54830b
1 changed files with 1 additions and 0 deletions
|
|
@ -118,6 +118,7 @@ class Editor:
|
||||||
self.mw = mw
|
self.mw = mw
|
||||||
self.widget = widget
|
self.widget = widget
|
||||||
self.parentWindow = parentWindow
|
self.parentWindow = parentWindow
|
||||||
|
self.nid: NoteId | None = None
|
||||||
# legacy argument provided?
|
# legacy argument provided?
|
||||||
if addMode is not None:
|
if addMode is not None:
|
||||||
editor_mode = EditorMode.ADD_CARDS if addMode else EditorMode.EDIT_CURRENT
|
editor_mode = EditorMode.ADD_CARDS if addMode else EditorMode.EDIT_CURRENT
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue