mirror of
https://github.com/sezanzeb/input-remapper
synced 2024-11-04 12:00:16 +00:00
pretty preset config files
This commit is contained in:
parent
aa8a1b4f3f
commit
1f83b7a09f
@ -137,7 +137,8 @@ class Mapping:
|
|||||||
shutil.chown(path, os.getlogin())
|
shutil.chown(path, os.getlogin())
|
||||||
|
|
||||||
with open(path, 'w') as f:
|
with open(path, 'w') as f:
|
||||||
json.dump(self._mapping, f)
|
json.dump(self._mapping, f, indent=4)
|
||||||
|
f.write('\n')
|
||||||
|
|
||||||
self.changed = False
|
self.changed = False
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user