mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
conf() -> confForDid()
This commit is contained in:
parent
b14e6b306b
commit
2dbc5f22dc
2 changed files with 3 additions and 3 deletions
|
@ -116,7 +116,7 @@ class DeckConf(QDialog):
|
|||
return " ".join([str(x) for x in l])
|
||||
|
||||
def loadConf(self):
|
||||
self.conf = self.mw.col.decks.conf(self.deck['id'])
|
||||
self.conf = self.mw.col.decks.confForDid(self.deck['id'])
|
||||
# new
|
||||
c = self.conf['new']
|
||||
f = self.form
|
||||
|
|
|
@ -124,7 +124,7 @@ function _typeAnsPress() {
|
|||
c = self.card
|
||||
# grab the question and play audio
|
||||
q = c.q()
|
||||
if self.mw.col.decks.conf(self.card.did)['autoplay']:
|
||||
if self.mw.col.decks.confForDid(self.card.did)['autoplay']:
|
||||
playFromText(q)
|
||||
# render & update bottom
|
||||
q = self._mungeQA(q)
|
||||
|
@ -144,7 +144,7 @@ function _typeAnsPress() {
|
|||
c = self.card
|
||||
a = c.a()
|
||||
# play audio?
|
||||
if self.mw.col.decks.conf(self.card.did)['autoplay']:
|
||||
if self.mw.col.decks.confForDid(self.card.did)['autoplay']:
|
||||
playFromText(a)
|
||||
# render and update bottom
|
||||
a = self._mungeQA(a)
|
||||
|
|
Loading…
Reference in a new issue