fix a small error that caused deletion of your hud_config when saving.. oopsie
This commit is contained in:
parent
226153f15f
commit
3f0ede67ee
|
@ -502,7 +502,7 @@ class Config:
|
||||||
self.doc.writexml(f)
|
self.doc.writexml(f)
|
||||||
else:
|
else:
|
||||||
shutil.move(self.file, self.file+".backup")
|
shutil.move(self.file, self.file+".backup")
|
||||||
with open(self.file, 'w'):
|
with open(self.file, 'w') as f:
|
||||||
self.doc.writexml(f)
|
self.doc.writexml(f)
|
||||||
|
|
||||||
def edit_layout(self, site_name, max, width = None, height = None,
|
def edit_layout(self, site_name, max, width = None, height = None,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user