mirror of
https://github.com/pdxlocations/contact.git
synced 2026-08-07 01:13:19 +02:00
make sure nodes pad is created
This commit is contained in:
+4
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user