Commit 102b6617 authored by AUTOMATIC1111's avatar AUTOMATIC1111 Committed by GitHub

Merge pull request #13213 from AUTOMATIC1111/fix-add_option-overriding-config-with-default

Fix major issue add_option overriding config with default
parents 59544321 93015964
......@@ -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"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment