mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
ensure failure multiplier <= 1
This commit is contained in:
parent
65012283ec
commit
be9aba4d1a
1 changed files with 1 additions and 1 deletions
|
@ -238,7 +238,7 @@ class DeckProperties(QDialog):
|
|||
v = float(self.dialog.delay1.text()) * 60.0
|
||||
self.updateField(self.d, 'delay1', v)
|
||||
v = float(self.dialog.delay2.text())
|
||||
self.updateField(self.d, 'delay2', v)
|
||||
self.updateField(self.d, 'delay2', min(v, 1))
|
||||
v = int(self.dialog.failedCardMax.text())
|
||||
self.updateField(self.d, 'failedCardMax', max(v, 2))
|
||||
except ValueError:
|
||||
|
|
Loading…
Reference in a new issue