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(
|
||||
_("The first field of the note type must be mapped."))
|
||||
return
|
||||
self.importer.update = self.frm.updateNotes.isChecked()
|
||||
self.importer.importMode = self.frm.importMode.currentIndex()
|
||||
did = self.deck.selectedId()
|
||||
if did != self.importer.model['did']:
|
||||
self.importer.model['did'] = did
|
||||
|
|
|
@ -52,13 +52,22 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="updateNotes">
|
||||
<property name="text">
|
||||
<string>Update existing notes when first field matches</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<widget class="QComboBox" name="importMode">
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Update existing notes when first field matches</string>
|
||||
</property>
|
||||
</item>
|
||||
<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>
|
||||
</item>
|
||||
</layout>
|
||||
|
@ -118,7 +127,7 @@
|
|||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>402</width>
|
||||
<height>236</height>
|
||||
<height>229</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
|
|
Loading…
Reference in a new issue