mirror of
https://github.com/pdxlocations/contact.git
synced 2026-08-11 19:32:49 +02:00
persist the log when opening and closing
This commit is contained in:
+6
-3
@@ -514,9 +514,12 @@ def main(stdscr):
|
||||
# Display packet log
|
||||
if display_log is False:
|
||||
display_log = True
|
||||
packetlog_win.addstr(1, 1, "Packet Log")
|
||||
packetlog_win.box()
|
||||
packetlog_win.refresh()
|
||||
if not packet_buffer:
|
||||
packetlog_win.addstr(1, 1, "Packet Log")
|
||||
packetlog_win.box()
|
||||
packetlog_win.refresh()
|
||||
else:
|
||||
update_messages_window()
|
||||
else:
|
||||
display_log = False
|
||||
packetlog_win.clear()
|
||||
|
||||
Reference in New Issue
Block a user