update json formatting for ui settings

This commit is contained in:
rlx 2016-01-13 13:58:33 +05:30
parent eb87f56ede
commit 1d8c9eaf12
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ class pdict(dict):
def _save(self):
if self._path:
with open(self._path, 'w') as fd:
json.dump(self, fd, indent=1)
json.dump(self, fd, indent=4, sort_keys=True)
def get(self, key, default=None):
if default == None and self._defaults: