From b5c1120ad0ce1bc374c5af9fd209ac565e3f3993 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 7 Sep 2021 12:54:10 -0400 Subject: [PATCH] Set account in ui handler --- piker/ui/_position.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/piker/ui/_position.py b/piker/ui/_position.py index 8328b480..9bdc8ffd 100644 --- a/piker/ui/_position.py +++ b/piker/ui/_position.py @@ -78,7 +78,7 @@ class SettingsPane: '''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) self.on_ui_settings_change(key, text) @@ -112,7 +112,7 @@ class SettingsPane: elif key == 'account': account_name = value or 'paper' - assert alloc.account_name() == account_name + alloc.account = account_name else: raise ValueError(f'Unknown setting {key}')