more docs of bad design

This commit is contained in:
Peter D. Gray 2024-02-20 10:38:12 -05:00
parent 95a1b63b80
commit 726180dc36
No known key found for this signature in database
GPG Key ID: A2DCD558C2BE5D7C

View File

@ -90,8 +90,8 @@ class MenuItem:
if f:
rv = await f(menu, idx, self)
if isinstance(rv, MenuSystem):
# XXX the function should do this itself
# go to new menu
# XXX the function should do this itself, as the_ux.push(rv)
# replace current with new menu from function
the_ux.replace(rv)
m = getattr(self, 'next_menu', None)