Skip to content

Commit 102b661

Browse files
Merge pull request AUTOMATIC1111#13213 from AUTOMATIC1111/fix-add_option-overriding-config-with-default
Fix major issue add_option overriding config with default
2 parents 5954432 + 9301596 commit 102b661

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/options.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,8 @@ def dumpjson(self):
210210

211211
def add_option(self, key, info):
212212
self.data_labels[key] = info
213-
self.data[key] = info.default
213+
if key not in self.data:
214+
self.data[key] = info.default
214215

215216
def reorder(self):
216217
"""reorder settings so that all items related to section always go together"""

0 commit comments

Comments
 (0)