From 70b6cc9682248b43d0b23b9a2319da3b795495ec Mon Sep 17 00:00:00 2001 From: llama <100429699+iamllama@users.noreply.github.com> Date: Sun, 16 Feb 2025 17:11:28 +0800 Subject: [PATCH] set editor's card when reopening (#3814) --- qt/aqt/editcurrent.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qt/aqt/editcurrent.py b/qt/aqt/editcurrent.py index 60a9fc079..f52e1439c 100644 --- a/qt/aqt/editcurrent.py +++ b/qt/aqt/editcurrent.py @@ -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: