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

Fix major issue add_option overriding config with default
This commit is contained in:
AUTOMATIC1111 2023-09-12 17:50:44 +03:00 committed by GitHub
commit 102b6617da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -210,6 +210,7 @@ class Options:
def add_option(self, key, info):
self.data_labels[key] = info
if key not in self.data:
self.data[key] = info.default
def reorder(self):