From dae71984bc8c5fd1e42de9f8c5ecb0220de614e4 Mon Sep 17 00:00:00 2001 From: pdxlocations Date: Fri, 7 Feb 2025 21:01:06 -0800 Subject: [PATCH] make sure nodes pad is created --- ui/curses_ui.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/curses_ui.py b/ui/curses_ui.py index 7c35872..4831e1f 100644 --- a/ui/curses_ui.py +++ b/ui/curses_ui.py @@ -31,7 +31,7 @@ def handle_resize(stdscr, firstrun): packetlog_win = curses.newwin(int(height / 3), messages_width, height - int(height / 3) - 3, channel_width) # Will be resized to what we need when drawn - messages_pad = curses.newpad(1, 1) + messages_pad = curses.newpad(1,1) nodes_pad = curses.newpad(1,1) channel_pad = curses.newpad(1,1) @@ -71,6 +71,9 @@ def handle_resize(stdscr, firstrun): packetlog_win.resize(int(height / 3), messages_width) packetlog_win.mvwin(height - int(height / 3) - 3, channel_width) + if 'nodes_pad' not in globals(): + nodes_pad = curses.newpad(1, 1) + channel_win.box() entry_win.box()