fix the other json.dumps call

previous change was in the wrong place
33ae6404f1
This commit is contained in:
Damien Elmes 2018-12-15 09:13:10 +10:00
parent 0769bf7ac9
commit 748f362695

View File

@ -87,7 +87,7 @@ When loading '%(name)s':
def writeAddonMeta(self, dir, meta):
path = self._addonMetaPath(dir)
with open(path, "w", encoding="utf8") as f:
json.dump(meta, f, ensure_ascii=False)
json.dump(meta, f)
def toggleEnabled(self, dir):
meta = self.addonMeta(dir)
@ -489,7 +489,8 @@ class ConfigEditor(QDialog):
def updateText(self, conf):
self.form.editor.setPlainText(
json.dumps(conf,sort_keys=True,indent=4, separators=(',', ': ')))
json.dumps(conf, ensure_ascii=False, sort_keys=True,
indent=4, separators=(',', ': ')))
def accept(self):
txt = self.form.editor.toPlainText()