From 2e086375e7a280bca479b59303dbf6c39c376627 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 1 Aug 2021 18:53:59 -0400 Subject: [PATCH] Call god what it is --- piker/ui/_search.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/piker/ui/_search.py b/piker/ui/_search.py index 8edf4675..8ccfd7a4 100644 --- a/piker/ui/_search.py +++ b/piker/ui/_search.py @@ -795,7 +795,7 @@ async def handle_keyboard_input( # startup bar = searchbar search = searchbar.parent() - chart = search.godwidget + godwidget = search.godwidget view = bar.view view.set_font_size(bar.dpi_font.px_size) @@ -837,7 +837,7 @@ async def handle_keyboard_input( # if nothing in search text show the cache view.set_section_entries( 'cache', - list(reversed(chart._chart_cache)), + list(reversed(godwidget._chart_cache)), clear_all=True, ) continue @@ -851,9 +851,9 @@ async def handle_keyboard_input( search.bar.unfocus() # kill the search and focus back on main chart - if chart: + if godwidget: print('focussing view') - chart.linkedsplits.focus() + godwidget.linkedsplits.focus() continue