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:
parent
81fb57e2bf
commit
10562d6410
@ -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)}")
|
self.lcd.putstr(f"[{selection[0][0:lw].center(lw-2)}]{self.end_execution_msg[0:lw].center(lw)}")
|
||||||
sleep(self.end_execution_wait)
|
sleep(self.end_execution_wait)
|
||||||
self.show_selection()
|
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)
|
# listen for button presses (this method should be called in an endless loop, see method run)
|
||||||
|
Loading…
Reference in New Issue
Block a user