Set account in ui handler

fsp_feeds
Tyler Goodlet 2021-09-07 12:54:10 -04:00
parent 5d25a0d370
commit b5c1120ad0
1 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ class SettingsPane:
'''Called on any order pane drop down selection change. '''Called on any order pane drop down selection change.
''' '''
print(f'selection input: {text}') log.info(f'selection input: {text}')
setattr(self.alloc, key, text) setattr(self.alloc, key, text)
self.on_ui_settings_change(key, text) self.on_ui_settings_change(key, text)
@ -112,7 +112,7 @@ class SettingsPane:
elif key == 'account': elif key == 'account':
account_name = value or 'paper' account_name = value or 'paper'
assert alloc.account_name() == account_name alloc.account = account_name
else: else:
raise ValueError(f'Unknown setting {key}') raise ValueError(f'Unknown setting {key}')