remember import mode

This commit is contained in:
Damien Elmes 2013-01-08 10:32:41 +09:00
parent ab04c4e99d
commit df961cc509
2 changed files with 3 additions and 0 deletions

View File

@ -70,6 +70,7 @@ class ImportDialog(QDialog):
self.onDelimiter)
self.updateDelimiterButtonText()
self.frm.allowHTML.setChecked(self.mw.pm.profile.get('allowHTML', False))
self.frm.importMode.setCurrentIndex(self.mw.pm.profile.get('importMode', 0))
self.exec_()
def setupOptions(self):
@ -137,6 +138,7 @@ you can enter it here. Use \\t to represent tab."""),
_("The first field of the note type must be mapped."))
return
self.importer.importMode = self.frm.importMode.currentIndex()
self.mw.pm.profile['importMode'] = self.importer.importMode
self.importer.allowHTML = self.frm.allowHTML.isChecked()
self.mw.pm.profile['allowHTML'] = self.importer.allowHTML
did = self.deck.selectedId()

View File

@ -49,6 +49,7 @@ profileConf = dict(
autoSync=True,
# importing
allowHTML=False,
importMode=0,
)
class ProfileManager(object):