mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-04-17 10:29:01 +08:00
Merge pull request #12957 from AnyISalIn/dev
fix: update shared.opts.data when add_option
This commit is contained in:
commit
e06c16e884
@ -210,6 +210,7 @@ class Options:
|
|||||||
|
|
||||||
def add_option(self, key, info):
|
def add_option(self, key, info):
|
||||||
self.data_labels[key] = info
|
self.data_labels[key] = info
|
||||||
|
self.data[key] = info.default
|
||||||
|
|
||||||
def reorder(self):
|
def reorder(self):
|
||||||
"""reorder settings so that all items related to section always go together"""
|
"""reorder settings so that all items related to section always go together"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user