Create and opt in to dict type safety from JSON

Opt in via the keyword-only argument `dict_only`
This commit is contained in:
awsr
2025-12-10 05:03:18 -08:00
parent 1b44c4e498
commit c22ca8d76e
14 changed files with 34 additions and 26 deletions
+1 -1
View File
@@ -163,7 +163,7 @@ class Options():
log.debug(f'Settings: fn="{filename}" created')
self.save(filename)
return
self.data = readfile(filename, lock=True)
self.data = readfile(filename, lock=True, dict_only=True)
if self.data.get('quicksettings') is not None and self.data.get('quicksettings_list') is None:
self.data['quicksettings_list'] = [i.strip() for i in self.data.get('quicksettings').split(',')]
unknown_settings = []