persist the log when opening and closing

This commit is contained in:
pdxlocations
2024-11-19 19:45:58 -08:00
committed by GitHub
parent 07571f2f73
commit 6bdc8941cb
+6 -3
View File
@@ -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()