aboutsummaryrefslogtreecommitdiff
path: root/modules/options.py
diff options
context:
space:
mode:
authorAnyISalIn <anyisalin@gmail.com>2023-09-01 21:45:11 +0800
committerAnyISalIn <anyisalin@gmail.com>2023-09-01 21:56:17 +0800
commit317d00b2a6f81eb58e33487abf05a8b84ef01dd0 (patch)
tree1aee7ed2ac656bd52fd85638eb1fa9a889be3dc1 /modules/options.py
parentd39440bfb9d3b20338fc23a78e6655b1e2f7c1d5 (diff)
fix: update shared.opts.data when add_option
Signed-off-by: AnyISalIn <anyisalin@gmail.com>
Diffstat (limited to 'modules/options.py')
-rw-r--r--modules/options.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/options.py b/modules/options.py
index 758b1ce5..e75916d2 100644
--- a/modules/options.py
+++ b/modules/options.py
@@ -210,6 +210,7 @@ class Options:
def add_option(self, key, info):
self.data_labels[key] = info
+ self.data[key] = info.default
def reorder(self):
"""reorder settings so that all items related to section always go together"""