mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 07:52:24 -04:00
fix parent limit count
This commit is contained in:
parent
fc2c7c434c
commit
e99b5610c5
2 changed files with 1 additions and 2 deletions
|
@ -146,7 +146,7 @@ class DeckConf(QDialog):
|
||||||
return ""
|
return ""
|
||||||
lim = -1
|
lim = -1
|
||||||
for d in self.mw.col.decks.parents(self.deck['id']):
|
for d in self.mw.col.decks.parents(self.deck['id']):
|
||||||
c = self.mw.col.decks.confForDid(d)
|
c = self.mw.col.decks.confForDid(d['id'])
|
||||||
x = c[type]['perDay']
|
x = c[type]['perDay']
|
||||||
if lim == -1:
|
if lim == -1:
|
||||||
lim = x
|
lim = x
|
||||||
|
|
|
@ -676,7 +676,6 @@ function showAnswer(txt) {
|
||||||
self.onReplayRecorded()
|
self.onReplayRecorded()
|
||||||
|
|
||||||
def onReplayRecorded(self):
|
def onReplayRecorded(self):
|
||||||
print "replay"
|
|
||||||
if not self._recordedAudio:
|
if not self._recordedAudio:
|
||||||
return tooltip(_("You haven't recorded your voice yet."))
|
return tooltip(_("You haven't recorded your voice yet."))
|
||||||
clearAudioQueue()
|
clearAudioQueue()
|
||||||
|
|
Loading…
Reference in a new issue