Set account in ui handler
parent
5d25a0d370
commit
b5c1120ad0
|
@ -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}')
|
||||||
|
|
Loading…
Reference in New Issue