Skip to content

Commit

Permalink
Merge pull request AUTOMATIC1111#13213 from AUTOMATIC1111/fix-add_opt…
Browse files Browse the repository at this point in the history
…ion-overriding-config-with-default

Fix major issue add_option overriding config with default
  • Loading branch information
AUTOMATIC1111 authored Sep 12, 2023
2 parents 5954432 + 9301596 commit 102b661
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ def dumpjson(self):

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"""
Expand Down

0 comments on commit 102b661

Please sign in to comment.