make sure nodes pad is created

This commit is contained in:
pdxlocations
2025-02-07 21:01:06 -08:00
parent 3668d47119
commit dae71984bc
+4 -1
View File
@@ -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()