aboutsummaryrefslogtreecommitdiff
path: root/modules/options.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-11-05 19:30:57 +0300
committerGitHub <noreply@github.com>2023-11-05 19:30:57 +0300
commitff805d8d0eb8e3de42f04747de0d1c7354491810 (patch)
treec6e557895ff3172bad42da469a6912ac718078a1 /modules/options.py
parent44c5097375ae4cf40300c09473bb46cf6c5d6cb7 (diff)
parentc3699d4fd185d5a7285c5519f9bb4b6fec236d9f (diff)
Merge branch 'dev' into master
Diffstat (limited to 'modules/options.py')
-rw-r--r--modules/options.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/options.py b/modules/options.py
index 758b1ce5..ab40aff7 100644
--- a/modules/options.py
+++ b/modules/options.py
@@ -210,6 +210,8 @@ 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):
"""reorder settings so that all items related to section always go together"""