Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recommended way to detect top-level exit was pressed? #20

Closed
malachib opened this issue Mar 21, 2016 · 1 comment
Closed

Recommended way to detect top-level exit was pressed? #20

malachib opened this issue Mar 21, 2016 · 1 comment

Comments

@malachib
Copy link

Hi, I love the library though I struggle to understand using it sometimes !

What do you recommend for detecting that top-level exit is pressed when using the "canExit=true" mechanism? I don't need to detect sub-menu exit.

On a side note, my submenus don't seem to be showing "exit", but rather a duplicate of the last submenu entry

@neu-rah
Copy link
Owner

neu-rah commented Apr 14, 2016

sub-menus should use canExit, and its a fossil from previous versions.
with the new non blocking mechanism we can suspend resume the menu at will, so we can have any option anywhere that can set a flag causing the menu to not be called (suspended) provided that we have a method to resume it again.
there are some details on the wiki and other use posts

@neu-rah neu-rah closed this as completed Jun 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants