Add missing editor.nid initialization

This commit is contained in:
Abdo 2025-06-24 15:28:40 +03:00
parent c4a9ba254e
commit 723b54830b

View file

@ -118,6 +118,7 @@ class Editor:
self.mw = mw
self.widget = widget
self.parentWindow = parentWindow
self.nid: NoteId | None = None
# legacy argument provided?
if addMode is not None:
editor_mode = EditorMode.ADD_CARDS if addMode else EditorMode.EDIT_CURRENT