set editor's card when reopening (#3814)

This commit is contained in:
llama 2025-02-16 17:11:28 +08:00 committed by GitHub
parent 5d07eca327
commit 70b6cc9682
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -67,6 +67,7 @@ class EditCurrent(QMainWindow):
def reopen(self, mw: aqt.AnkiQt) -> None:
if card := self.mw.reviewer.card:
self.editor.card = card
self.editor.set_note(card.note())
def closeEvent(self, evt: QCloseEvent | None) -> None: