"""Update the user interface for new config settings.
Should be called with the new `config` upon recipt of
- `ReloadUserInterfaceConfig` from the `CommandEngine`.
+ `ReloadUserInterfaceConfig` from the `CommandEngine` or when
+ loading the initial configuration.
"""
try:
self.config = dict(config.items(self.setting_section))
assert len(uis) == 1, 'Can only select one UI, not %d: %s' % (len(uis),uis)
name = uis[0]
ui = USER_INTERFACES[name]
- try:
- ui.config = dict(config.items(ui.setting_section))
- except configparser.NoSectionError:
- pass
+ ui.reload_config(config)
return ui