mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
remember allowHTML setting
This commit is contained in:
parent
26ae5e1c47
commit
be7b293b15
2 changed files with 4 additions and 2 deletions
|
@ -69,6 +69,7 @@ class ImportDialog(QDialog):
|
||||||
self.connect(self.frm.autoDetect, SIGNAL("clicked()"),
|
self.connect(self.frm.autoDetect, SIGNAL("clicked()"),
|
||||||
self.onDelimiter)
|
self.onDelimiter)
|
||||||
self.updateDelimiterButtonText()
|
self.updateDelimiterButtonText()
|
||||||
|
self.frm.allowHTML.setChecked(self.mw.pm.profile.get('allowHTML', False))
|
||||||
self.exec_()
|
self.exec_()
|
||||||
|
|
||||||
def setupOptions(self):
|
def setupOptions(self):
|
||||||
|
@ -137,6 +138,7 @@ you can enter it here. Use \\t to represent tab."""),
|
||||||
return
|
return
|
||||||
self.importer.importMode = self.frm.importMode.currentIndex()
|
self.importer.importMode = self.frm.importMode.currentIndex()
|
||||||
self.importer.allowHTML = self.frm.allowHTML.isChecked()
|
self.importer.allowHTML = self.frm.allowHTML.isChecked()
|
||||||
|
self.mw.pm.profile['allowHTML'] = self.importer.allowHTML
|
||||||
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
|
||||||
|
|
|
@ -34,7 +34,6 @@ profileConf = dict(
|
||||||
mainWindowState=None,
|
mainWindowState=None,
|
||||||
numBackups=30,
|
numBackups=30,
|
||||||
lastOptimize=intTime(),
|
lastOptimize=intTime(),
|
||||||
|
|
||||||
# editing
|
# editing
|
||||||
fullSearch=False,
|
fullSearch=False,
|
||||||
searchHistory=[],
|
searchHistory=[],
|
||||||
|
@ -44,11 +43,12 @@ profileConf = dict(
|
||||||
# not exposed in gui
|
# not exposed in gui
|
||||||
deleteMedia=False,
|
deleteMedia=False,
|
||||||
preserveKeyboard=True,
|
preserveKeyboard=True,
|
||||||
|
|
||||||
# syncing
|
# syncing
|
||||||
syncKey=None,
|
syncKey=None,
|
||||||
syncMedia=True,
|
syncMedia=True,
|
||||||
autoSync=True,
|
autoSync=True,
|
||||||
|
# importing
|
||||||
|
allowHTML=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
class ProfileManager(object):
|
class ProfileManager(object):
|
||||||
|
|
Loading…
Reference in a new issue