Skip to content

Commit

Permalink
fix add_option overriding config with default
Browse files Browse the repository at this point in the history
  • Loading branch information
w-e-w committed Sep 12, 2023
1 parent 5954432 commit c4b7ebd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ def dumpjson(self):

def add_option(self, key, info):
self.data_labels[key] = info
self.data[key] = info.default
if self.data.get(key) is None:
self.data[key] = info.default

def reorder(self):
"""reorder settings so that all items related to section always go together"""
Expand Down

0 comments on commit c4b7ebd

Please sign in to comment.