mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-06 09:12:39 -08:00
only rewrite ui-config when there is change
and a typo
This commit is contained in:
parent
de03882d6c
commit
10945aa41a
2 changed files with 4 additions and 2 deletions
|
|
@ -144,7 +144,7 @@ class UiLoadsave:
|
|||
json.dump(current_ui_settings, file, indent=4, ensure_ascii=False)
|
||||
|
||||
def dump_defaults(self):
|
||||
"""saves default values to a file unless tjhe file is present and there was an error loading default values at start"""
|
||||
"""saves default values to a file unless the file is present and there was an error loading default values at start"""
|
||||
|
||||
if self.error_loading and os.path.exists(self.filename):
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue