From 1fbcbe6f617a2be82fe6e39ad46f81292c107279 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Wed, 26 Oct 2022 02:41:23 -0600 Subject: [PATCH] Fix help return screen bug --- main.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index d200d0a..53b8da6 100755 --- a/main.py +++ b/main.py @@ -444,7 +444,6 @@ curses.curs_set(0) highlight_keys = False highlight_debounce = time.time() highlight_count = 0 -help_return = '' sign_to_send = '' messages = ['']*15 message_to_send = '' @@ -874,7 +873,7 @@ while True: button = None def try_highlight(): - global c, highlight_debounce, highlight_keys, highlight_count, current_screen, help_return + global c, highlight_debounce, highlight_keys, highlight_count, current_screen if c and time.time() - highlight_debounce > 0.6: highlight_debounce = time.time() @@ -885,7 +884,6 @@ while True: if highlight_count >= 3: highlight_count = 0 - help_return = current_screen current_screen = 'help' if current_screen == 'home': @@ -948,7 +946,7 @@ while True: elif current_screen == 'help': if button == 'o': - current_screen = help_return + current_screen = 'home' else: try_highlight()