diff --git a/aqt/importing.py b/aqt/importing.py index 470708cb4..44feac846 100644 --- a/aqt/importing.py +++ b/aqt/importing.py @@ -127,10 +127,7 @@ you can enter it here. Use \\t to represent tab."""), d = _("Colon") else: d = `d` - if self.importer.delimiter: - txt = _("Manual &delimiter: %s") % d - else: - txt = _("Auto-detected &delimiter: %s") % d + txt = _("Fields separated by: %s") % d self.frm.autoDetect.setText(txt) def doImport(self, update=False): @@ -139,6 +136,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() did = self.deck.selectedId() if did != self.importer.model['did']: self.importer.model['did'] = did diff --git a/designer/importing.ui b/designer/importing.ui index 391edba3c..632f43033 100644 --- a/designer/importing.ui +++ b/designer/importing.ui @@ -20,37 +20,47 @@ Import options - - - - Auto-detect file format - - - + + + - Note type: + Type - + - Deck: + Deck - - - + + + + + + + + + + + Update existing notes when first field matches + + + true + + + @@ -108,7 +118,7 @@ 0 0 402 - 237 + 236 @@ -132,7 +142,6 @@ - autoDetect importButton buttonBox