mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -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.showProgress.setChecked(qc['dueCounts'])
|
||||||
f.newSpread.addItems(c.newCardSchedulingLabels().values())
|
f.newSpread.addItems(c.newCardSchedulingLabels().values())
|
||||||
f.newSpread.setCurrentIndex(qc['newSpread'])
|
f.newSpread.setCurrentIndex(qc['newSpread'])
|
||||||
f.useCurrent.setChecked(qc.get("addToCur", True))
|
f.useCurrent.setCurrentIndex(int(not qc.get("addToCur", True)))
|
||||||
|
|
||||||
def updateCollection(self):
|
def updateCollection(self):
|
||||||
f = self.form
|
f = self.form
|
||||||
|
@ -64,7 +64,7 @@ class Preferences(QDialog):
|
||||||
qc['newSpread'] = f.newSpread.currentIndex()
|
qc['newSpread'] = f.newSpread.currentIndex()
|
||||||
qc['timeLim'] = f.timeLimit.value()*60
|
qc['timeLim'] = f.timeLimit.value()*60
|
||||||
qc['collapseTime'] = f.lrnCutoff.value()*60
|
qc['collapseTime'] = f.lrnCutoff.value()*60
|
||||||
qc['addToCur'] = f.useCurrent.isChecked()
|
qc['addToCur'] = not f.useCurrent.currentIndex()
|
||||||
hrs = f.dayOffset.value()
|
hrs = f.dayOffset.value()
|
||||||
old = self.startDate
|
old = self.startDate
|
||||||
date = datetime.datetime(
|
date = datetime.datetime(
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>441</width>
|
<width>441</width>
|
||||||
<height>426</height>
|
<height>445</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
|
@ -44,13 +44,6 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</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>
|
<item>
|
||||||
<widget class="QCheckBox" name="stripHTML">
|
<widget class="QCheckBox" name="stripHTML">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
@ -65,6 +58,20 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</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>
|
<item>
|
||||||
<widget class="QComboBox" name="newSpread"/>
|
<widget class="QComboBox" name="newSpread"/>
|
||||||
</item>
|
</item>
|
||||||
|
@ -387,9 +394,9 @@
|
||||||
<tabstops>
|
<tabstops>
|
||||||
<tabstop>showEstimates</tabstop>
|
<tabstop>showEstimates</tabstop>
|
||||||
<tabstop>showProgress</tabstop>
|
<tabstop>showProgress</tabstop>
|
||||||
<tabstop>useCurrent</tabstop>
|
|
||||||
<tabstop>stripHTML</tabstop>
|
<tabstop>stripHTML</tabstop>
|
||||||
<tabstop>pastePNG</tabstop>
|
<tabstop>pastePNG</tabstop>
|
||||||
|
<tabstop>useCurrent</tabstop>
|
||||||
<tabstop>newSpread</tabstop>
|
<tabstop>newSpread</tabstop>
|
||||||
<tabstop>dayOffset</tabstop>
|
<tabstop>dayOffset</tabstop>
|
||||||
<tabstop>lrnCutoff</tabstop>
|
<tabstop>lrnCutoff</tabstop>
|
||||||
|
|
Loading…
Reference in a new issue