fix add_option overriding config with default

This commit is contained in:
w-e-w 2023-09-12 22:43:35 +09:00
parent 59544321aa
commit 93015964c7

View File

@ -210,7 +210,8 @@ class Options:
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"""