mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-26 14:36:03 -05:00
Merge pull request #1044 from googan-star/develop
Prettify settings JSON dump
This commit is contained in:
commit
fdb56f3c62
@ -199,7 +199,7 @@ class Settings(object):
|
||||
Save settings to file.
|
||||
"""
|
||||
self.common.log('Settings', 'save')
|
||||
open(self.filename, 'w').write(json.dumps(self._settings))
|
||||
open(self.filename, 'w').write(json.dumps(self._settings, indent=2))
|
||||
self.common.log('Settings', 'save', 'Settings saved in {}'.format(self.filename))
|
||||
|
||||
def get(self, key):
|
||||
|
Loading…
x
Reference in New Issue
Block a user