From a40205728f2b292ea818f8497e492b424ca47ce2 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 10 Aug 2021 17:02:17 -0400 Subject: [PATCH] Position tracker is passed at init --- piker/ui/order_mode.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/piker/ui/order_mode.py b/piker/ui/order_mode.py index 55f92d8b..43d0e713 100644 --- a/piker/ui/order_mode.py +++ b/piker/ui/order_mode.py @@ -413,7 +413,7 @@ async def run_order_mode( ), ): - view = chart._vb + view = chart.view lines = LineEditor(chart=chart) arrows = ArrowEditor(chart, {}) @@ -431,8 +431,9 @@ async def run_order_mode( pp, ) + # TODO: create a mode "manager" of sorts? + # -> probably just call it "UxModes" err sumthin? # so that view handlers can access it - mode.pp = pp view.mode = mode asset_type = symbol.type_key