Streamline menu callbacks
This commit is contained in:
parent
a0df7959f9
commit
7d717b3696
5 changed files with 42 additions and 36 deletions
|
|
@ -494,11 +494,10 @@ int menu_run(struct menu *menu) {
|
|||
}
|
||||
}
|
||||
|
||||
bool failure = menu->failure;
|
||||
context_destroy(context);
|
||||
menu->context = NULL;
|
||||
|
||||
if (failure) {
|
||||
if (menu->failure) {
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
return EXIT_SUCCESS;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue