fix: update shared.opts.data when add_option

Signed-off-by: AnyISalIn <anyisalin@gmail.com>
This commit is contained in:
AnyISalIn 2023-09-01 21:45:11 +08:00
parent d39440bfb9
commit 317d00b2a6
1 changed files with 1 additions and 0 deletions

View File

@ -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"""