mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 23:42:23 -04:00
when previewing cards, use the default deck for now
Replay code needs to be able to retrieve deck options. We should probably use the current deck or pass it in in the future.
This commit is contained in:
parent
68e1303880
commit
ed52a4dc3f
1 changed files with 1 additions and 0 deletions
|
@ -478,6 +478,7 @@ class CardLayout(QDialog):
|
|||
def ephemeral_card_for_rendering(self) -> Card:
|
||||
card = Card(self.col)
|
||||
card.ord = self.ord
|
||||
card.did = 1
|
||||
template = copy.copy(self.current_template())
|
||||
# may differ in cloze case
|
||||
template["ord"] = card.ord
|
||||
|
|
Loading…
Reference in a new issue