This commit is contained in:
David Robertson
2020-05-02 02:12:09 +01:00
parent a00cdd6de7
commit b24474be65
5 changed files with 62 additions and 659 deletions

View File

@@ -621,10 +621,11 @@ class PreferencesUIManager:
:return: None
"""
for option in self.get_form_fields():
try:
self.defaults[option] = self.get_form_field(option=option).get_value()
except Exception as e:
log.debug("App.defaults_read_form() --> %s" % str(e))
if option in self.defaults:
try:
self.defaults[option] = self.get_form_field(option=option).get_value()
except Exception as e:
log.debug("App.defaults_read_form() --> %s" % str(e))
def defaults_write_form(self, factor=None, fl_units=None, source_dict=None):
"""