conf() -> confForDid()

This commit is contained in:
Damien Elmes 2011-12-13 13:56:16 +09:00
parent b14e6b306b
commit 2dbc5f22dc
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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)