mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
set editor's card when reopening (#3814)
This commit is contained in:
parent
5d07eca327
commit
70b6cc9682
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue