diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-09-12 14:50:44 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-12 14:50:44 +0000 |
commit | 102b6617dacffdcc89c56badcaae6c5e83c3ff21 (patch) | |
tree | ce83be02e0f8d7ab635aa578207066ddfc9678cc | |
parent | 59544321aa019d71d220b1da1eec703aa44fa8eb (diff) | |
parent | 93015964c7c920fbb834bf99977ab8e16296efac (diff) | |
download | stable-diffusion-webui-gfx803-102b6617dacffdcc89c56badcaae6c5e83c3ff21.tar.gz stable-diffusion-webui-gfx803-102b6617dacffdcc89c56badcaae6c5e83c3ff21.tar.bz2 stable-diffusion-webui-gfx803-102b6617dacffdcc89c56badcaae6c5e83c3ff21.zip |
Merge pull request #13213 from AUTOMATIC1111/fix-add_option-overriding-config-with-default
Fix major issue add_option overriding config with default
-rw-r--r-- | modules/options.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/options.py b/modules/options.py index e75916d2..ab40aff7 100644 --- a/modules/options.py +++ b/modules/options.py @@ -210,7 +210,8 @@ class Options: def add_option(self, key, info):
self.data_labels[key] = info
- self.data[key] = info.default
+ if key not in self.data:
+ self.data[key] = info.default
def reorder(self):
"""reorder settings so that all items related to section always go together"""
|