diff options
author | AnyISalIn <anyisalin@gmail.com> | 2023-09-01 13:45:11 +0000 |
---|---|---|
committer | AnyISalIn <anyisalin@gmail.com> | 2023-09-01 13:56:17 +0000 |
commit | 317d00b2a6f81eb58e33487abf05a8b84ef01dd0 (patch) | |
tree | 1aee7ed2ac656bd52fd85638eb1fa9a889be3dc1 /modules/options.py | |
parent | d39440bfb9d3b20338fc23a78e6655b1e2f7c1d5 (diff) | |
download | stable-diffusion-webui-gfx803-317d00b2a6f81eb58e33487abf05a8b84ef01dd0.tar.gz stable-diffusion-webui-gfx803-317d00b2a6f81eb58e33487abf05a8b84ef01dd0.tar.bz2 stable-diffusion-webui-gfx803-317d00b2a6f81eb58e33487abf05a8b84ef01dd0.zip |
fix: update shared.opts.data when add_option
Signed-off-by: AnyISalIn <anyisalin@gmail.com>
Diffstat (limited to 'modules/options.py')
-rw-r--r-- | modules/options.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/options.py b/modules/options.py index 758b1ce5..e75916d2 100644 --- a/modules/options.py +++ b/modules/options.py @@ -210,6 +210,7 @@ class Options: def add_option(self, key, info):
self.data_labels[key] = info
+ self.data[key] = info.default
def reorder(self):
"""reorder settings so that all items related to section always go together"""
|