mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
reword use current deck option in prefs
This commit is contained in:
parent
ffa9a7a642
commit
03577285bb
2 changed files with 18 additions and 11 deletions
|
@ -53,7 +53,7 @@ class Preferences(QDialog):
|
|||
f.showProgress.setChecked(qc['dueCounts'])
|
||||
f.newSpread.addItems(c.newCardSchedulingLabels().values())
|
||||
f.newSpread.setCurrentIndex(qc['newSpread'])
|
||||
f.useCurrent.setChecked(qc.get("addToCur", True))
|
||||
f.useCurrent.setCurrentIndex(int(not qc.get("addToCur", True)))
|
||||
|
||||
def updateCollection(self):
|
||||
f = self.form
|
||||
|
@ -64,7 +64,7 @@ class Preferences(QDialog):
|
|||
qc['newSpread'] = f.newSpread.currentIndex()
|
||||
qc['timeLim'] = f.timeLimit.value()*60
|
||||
qc['collapseTime'] = f.lrnCutoff.value()*60
|
||||
qc['addToCur'] = f.useCurrent.isChecked()
|
||||
qc['addToCur'] = not f.useCurrent.currentIndex()
|
||||
hrs = f.dayOffset.value()
|
||||
old = self.startDate
|
||||
date = datetime.datetime(
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>441</width>
|
||||
<height>426</height>
|
||||
<height>445</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
|
@ -44,13 +44,6 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="useCurrent">
|
||||
<property name="text">
|
||||
<string>Use the current deck as the default when adding notes</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="stripHTML">
|
||||
<property name="text">
|
||||
|
@ -65,6 +58,20 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="useCurrent">
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>When adding, default to current deck</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Change deck depending on note type</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="newSpread"/>
|
||||
</item>
|
||||
|
@ -387,9 +394,9 @@
|
|||
<tabstops>
|
||||
<tabstop>showEstimates</tabstop>
|
||||
<tabstop>showProgress</tabstop>
|
||||
<tabstop>useCurrent</tabstop>
|
||||
<tabstop>stripHTML</tabstop>
|
||||
<tabstop>pastePNG</tabstop>
|
||||
<tabstop>useCurrent</tabstop>
|
||||
<tabstop>newSpread</tabstop>
|
||||
<tabstop>dayOffset</tabstop>
|
||||
<tabstop>lrnCutoff</tabstop>
|
||||
|
|
Loading…
Reference in a new issue