mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -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])
|
return " ".join([str(x) for x in l])
|
||||||
|
|
||||||
def loadConf(self):
|
def loadConf(self):
|
||||||
self.conf = self.mw.col.decks.conf(self.deck['id'])
|
self.conf = self.mw.col.decks.confForDid(self.deck['id'])
|
||||||
# new
|
# new
|
||||||
c = self.conf['new']
|
c = self.conf['new']
|
||||||
f = self.form
|
f = self.form
|
||||||
|
|
|
@ -124,7 +124,7 @@ function _typeAnsPress() {
|
||||||
c = self.card
|
c = self.card
|
||||||
# grab the question and play audio
|
# grab the question and play audio
|
||||||
q = c.q()
|
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)
|
playFromText(q)
|
||||||
# render & update bottom
|
# render & update bottom
|
||||||
q = self._mungeQA(q)
|
q = self._mungeQA(q)
|
||||||
|
@ -144,7 +144,7 @@ function _typeAnsPress() {
|
||||||
c = self.card
|
c = self.card
|
||||||
a = c.a()
|
a = c.a()
|
||||||
# play audio?
|
# play audio?
|
||||||
if self.mw.col.decks.conf(self.card.did)['autoplay']:
|
if self.mw.col.decks.confForDid(self.card.did)['autoplay']:
|
||||||
playFromText(a)
|
playFromText(a)
|
||||||
# render and update bottom
|
# render and update bottom
|
||||||
a = self._mungeQA(a)
|
a = self._mungeQA(a)
|
||||||
|
|
Loading…
Reference in a new issue