From 3f403040db128617cf86ce76d0f12ec4c938e236 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 30 Aug 2020 11:23:44 +1000 Subject: [PATCH] fix card.template() in card layout screen https://forums.ankiweb.net/t/card-template-does-not-work-when-called-in-card-will-show-hook-in-template-editor/2798 --- qt/aqt/clayout.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qt/aqt/clayout.py b/qt/aqt/clayout.py index fcbe69039..2398065bb 100644 --- a/qt/aqt/clayout.py +++ b/qt/aqt/clayout.py @@ -529,6 +529,7 @@ class CardLayout(QDialog): fill_empty=self.fill_empty_action_toggled, ).render() card.set_render_output(output) + card._note = self.note return card # Card operations