mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 16:02:23 -04:00
update failed handling, remember new deck
This commit is contained in:
parent
d67d64d1ea
commit
e097991b4e
3 changed files with 9 additions and 8 deletions
|
@ -64,7 +64,7 @@ class DeckProperties(QDialog):
|
|||
getattr(self.dialog, type + "Max").setText("%0.3f" % v)
|
||||
self.dialog.delay0.setText(unicode(self.d.delay0/60.0))
|
||||
self.dialog.delay1.setText(unicode(self.d.delay1/60.0))
|
||||
self.dialog.delay2.setText(unicode(self.d.delay2/60.0))
|
||||
self.dialog.delay2.setText(unicode(self.d.delay2))
|
||||
self.dialog.collapse.setCheckState(self.d.collapseTime
|
||||
and Qt.Checked or Qt.Unchecked)
|
||||
self.dialog.failedCardMax.setText(unicode(self.d.failedCardMax))
|
||||
|
@ -228,7 +228,7 @@ class DeckProperties(QDialog):
|
|||
self.updateField(self.d, 'delay0', v)
|
||||
v = float(self.dialog.delay1.text()) * 60.0
|
||||
self.updateField(self.d, 'delay1', v)
|
||||
v = float(self.dialog.delay2.text()) * 60.0
|
||||
v = float(self.dialog.delay2.text())
|
||||
self.updateField(self.d, 'delay2', v)
|
||||
v = int(self.dialog.failedCardMax.text())
|
||||
self.updateField(self.d, 'failedCardMax', v)
|
||||
|
|
|
@ -592,6 +592,7 @@ class AnkiQt(QMainWindow):
|
|||
self.deck = DeckStorage.Deck()
|
||||
self.deck.addModel(BasicModel())
|
||||
self.saveDeck()
|
||||
self.updateRecentFiles(self.deck.path)
|
||||
self.moveToState("initial")
|
||||
|
||||
def ensureSyncParams(self):
|
||||
|
|
|
@ -340,7 +340,7 @@ p, li { white-space: pre-wrap; }
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>372</width>
|
||||
<width>373</width>
|
||||
<height>342</height>
|
||||
</rect>
|
||||
</property>
|
||||
|
@ -405,7 +405,7 @@ p, li { white-space: pre-wrap; }
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>372</width>
|
||||
<width>373</width>
|
||||
<height>342</height>
|
||||
</rect>
|
||||
</property>
|
||||
|
@ -505,7 +505,7 @@ p, li { white-space: pre-wrap; }
|
|||
<item row="4" column="0" >
|
||||
<widget class="QLabel" name="label_3" >
|
||||
<property name="text" >
|
||||
<string><b>3: Initial Medium Interval</b></string>
|
||||
<string><b>3: Initial Good Interval</b></string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -559,7 +559,7 @@ p, li { white-space: pre-wrap; }
|
|||
<item row="0" column="0" >
|
||||
<widget class="QLabel" name="label_20" >
|
||||
<property name="text" >
|
||||
<string><b>0: Totally Forgot</b></string>
|
||||
<string><b>1: Again (Young)</b></string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -576,7 +576,7 @@ p, li { white-space: pre-wrap; }
|
|||
<item row="1" column="0" >
|
||||
<widget class="QLabel" name="label_22" >
|
||||
<property name="text" >
|
||||
<string><b>1: Made a Mistake (Young)</b></string>
|
||||
<string><b>1: Again (Mature)</b></string>
|
||||
</property>
|
||||
<property name="openExternalLinks" >
|
||||
<bool>true</bool>
|
||||
|
@ -596,7 +596,7 @@ p, li { white-space: pre-wrap; }
|
|||
<item row="2" column="0" >
|
||||
<widget class="QLabel" name="label_19" >
|
||||
<property name="text" >
|
||||
<string><b>1: Made a Mistake (Mature)</b></string>
|
||||
<string><b>1: Failure Multiplier</b></string>
|
||||
</property>
|
||||
<property name="openExternalLinks" >
|
||||
<bool>true</bool>
|
||||
|
|
Loading…
Reference in a new issue