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

clear assigned functions #7

Closed
Nagymadar opened this issue Mar 15, 2020 · 2 comments
Closed

clear assigned functions #7

Nagymadar opened this issue Mar 15, 2020 · 2 comments

Comments

@Nagymadar
Copy link

In some cases it would be helpful to clear all assigned functions and variables.
Example: menu handling where after a click new functions must be assigned, but all older have to be cleared. It can be done right now by manually assigning NULL to all of them, but a simple clear function would solve it.
Another option to delete buttons and create new ones as this is done when an instance is created. But that needs more resources. Any suggestions?

@LennartHennigs
Copy link
Owner

so you'd like a clearAll() function that removes all callback functions?

@LennartHennigs
Copy link
Owner

I named the function reset().

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