mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 08:22:24 -04:00
don't force maxFailed=2 when the user wants unlimited
This commit is contained in:
parent
3e739e7698
commit
4f03bdd94b
1 changed files with 3 additions and 1 deletions
|
@ -244,7 +244,9 @@ class DeckProperties(QDialog):
|
||||||
v = float(self.dialog.delay2.text())
|
v = float(self.dialog.delay2.text())
|
||||||
self.updateField(self.d, 'delay2', min(v, 1))
|
self.updateField(self.d, 'delay2', min(v, 1))
|
||||||
v = int(self.dialog.failedCardMax.text())
|
v = int(self.dialog.failedCardMax.text())
|
||||||
self.updateField(self.d, 'failedCardMax', max(v, 2))
|
if v == 1 or v < 0:
|
||||||
|
v = 2
|
||||||
|
self.updateField(self.d, 'failedCardMax', v)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
pass
|
pass
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue