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,6 +210,7 @@ class Options:
def add_option(self, key, info): def add_option(self, key, info):
self.data_labels[key] = info self.data_labels[key] = info
if key not in self.data:
self.data[key] = info.default self.data[key] = info.default
def reorder(self): def reorder(self):