mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
card layout
This commit is contained in:
parent
cbbb5fd363
commit
ac35d8330b
1 changed files with 6 additions and 2 deletions
|
@ -705,8 +705,12 @@ class Editor(object):
|
|||
self.htmlEdit.setShown(toggle)
|
||||
|
||||
def onCardLayout(self):
|
||||
self.saveFields()
|
||||
ui.clayout.CardLayout(self.parent, self, self.fact, self.card)
|
||||
from aqt.clayout import CardLayout
|
||||
if self.card:
|
||||
type = 1; ord = self.card.ord
|
||||
else:
|
||||
type = 0; ord = 0
|
||||
CardLayout(self.mw, self.fact, type=type, ord=ord, parent=self.widget)
|
||||
|
||||
# FIXME: in some future version, we should use a different delimiter, as
|
||||
# [sound] et al conflicts
|
||||
|
|
Loading…
Reference in a new issue