Fixed small bug of lcdMenu not resuming to the menu after execution of a item in case of no return (of the callback)

This commit is contained in:
2024-11-12 21:28:11 +01:00
parent 81fb57e2bf
commit 10562d6410

View File

@@ -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)