Allow toggling info off with the same button (#14660)

This commit is contained in:
sonninnos 2022-11-22 18:23:19 +02:00 committed by GitHub
parent 5351aeaa4e
commit e0e6810cf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7664,7 +7664,9 @@ static int generic_menu_iterate(
}
BIT64_SET(menu->state, MENU_STATE_RENDER_MESSAGEBOX);
BIT64_SET(menu->state, MENU_STATE_POST_ITERATE);
if (action == MENU_ACTION_OK || action == MENU_ACTION_CANCEL)
if ( action == MENU_ACTION_OK
|| action == MENU_ACTION_CANCEL
|| action == MENU_ACTION_INFO)
{
BIT64_SET(menu->state, MENU_STATE_POP_STACK);
}