From 10562d64107dddc6bf954c0542efe66c0641fc72 Mon Sep 17 00:00:00 2001 From: BlueFox Date: Tue, 12 Nov 2024 21:28:11 +0100 Subject: [PATCH] Fixed small bug of lcdMenu not resuming to the menu after execution of a item in case of no return (of the callback) --- __init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/__init__.py b/__init__.py index 1044d93..57c11cd 100644 --- a/__init__.py +++ b/__init__.py @@ -196,6 +196,8 @@ class lcdMenu: self.lcd.putstr(f"[{selection[0][0:lw].center(lw-2)}]{self.end_execution_msg[0:lw].center(lw)}") sleep(self.end_execution_wait) self.show_selection() + else: # -> show no message and quit directly back into the lcdMenu + self.show_selection() # listen for button presses (this method should be called in an endless loop, see method run)