From 9c380c18fd36322fbc0332c7778763bb85ce0432 Mon Sep 17 00:00:00 2001 From: pdxlocations Date: Fri, 7 Feb 2025 20:19:26 -0800 Subject: [PATCH] maybe this --- main.py | 1 - ui/curses_ui.py | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 3955a98..34686f8 100644 --- a/main.py +++ b/main.py @@ -54,7 +54,6 @@ def main(stdscr): pub.subscribe(on_receive, 'meshtastic.receive') init_nodedb() load_messages_from_db() - time.sleep(5) logging.info("Starting main UI") main_ui(stdscr) except Exception as e: diff --git a/ui/curses_ui.py b/ui/curses_ui.py index dc4c969..321108b 100644 --- a/ui/curses_ui.py +++ b/ui/curses_ui.py @@ -10,9 +10,10 @@ import ui.dialog import globals +messages_pad = messages_box = nodes_pad = nodes_box = channel_pad = channel_box = function_win = packetlog_win = entry_win = None + def main_ui(stdscr): global messages_pad, messages_box, nodes_pad, nodes_box, channel_pad, channel_box, function_win, packetlog_win, entry_win - messages_pad = messages_box = nodes_pad = nodes_box = channel_pad = channel_box = function_win = packetlog_win = entry_win = None stdscr.keypad(True) get_channels()