From a201bcccb2ab192b176d8aeb6f9c0403da11283c Mon Sep 17 00:00:00 2001 From: pdxlocations Date: Sat, 8 Feb 2025 07:57:09 -0800 Subject: [PATCH] more excuses --- ui/curses_ui.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/curses_ui.py b/ui/curses_ui.py index 1464fba..1a00db2 100644 --- a/ui/curses_ui.py +++ b/ui/curses_ui.py @@ -11,7 +11,7 @@ import default_config as config import ui.dialog import globals - +messages_pad = messages_win = nodes_pad = nodes_win = channel_pad = channel_win = function_win = packetlog_win = entry_win = None def handle_resize(stdscr, firstrun): global messages_pad, messages_win, nodes_pad, nodes_win, channel_pad, channel_win, function_win, packetlog_win, entry_win @@ -435,6 +435,10 @@ def draw_messages_window(scroll_to_bottom = False): draw_packetlog_win() def draw_node_list(): + global nodes_pad + if nodes_pad is None: + nodes_pad = curses.newpad(1, 1) + try: nodes_pad.erase() box_width = nodes_win.getmaxyx()[1]