mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
allow duplicates in import
This commit is contained in:
parent
df3d2b8544
commit
8ceef95199
2 changed files with 18 additions and 9 deletions
|
@ -138,7 +138,7 @@ you can enter it here. Use \\t to represent tab."""),
|
||||||
showWarning(
|
showWarning(
|
||||||
_("The first field of the note type must be mapped."))
|
_("The first field of the note type must be mapped."))
|
||||||
return
|
return
|
||||||
self.importer.update = self.frm.updateNotes.isChecked()
|
self.importer.importMode = self.frm.importMode.currentIndex()
|
||||||
did = self.deck.selectedId()
|
did = self.deck.selectedId()
|
||||||
if did != self.importer.model['did']:
|
if did != self.importer.model['did']:
|
||||||
self.importer.model['did'] = did
|
self.importer.model['did'] = did
|
||||||
|
|
|
@ -52,13 +52,22 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="updateNotes">
|
<widget class="QComboBox" name="importMode">
|
||||||
<property name="text">
|
<item>
|
||||||
<string>Update existing notes when first field matches</string>
|
<property name="text">
|
||||||
</property>
|
<string>Update existing notes when first field matches</string>
|
||||||
<property name="checked">
|
</property>
|
||||||
<bool>true</bool>
|
</item>
|
||||||
</property>
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>Ignore lines where first field matches existing note</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>Import even if existing note has same first field</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
|
@ -118,7 +127,7 @@
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>402</width>
|
<width>402</width>
|
||||||
<height>236</height>
|
<height>229</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
|
Loading…
Reference in a new issue