Ignore menu event action in the end of function instead (#15811)

This commit is contained in:
sonninnos 2023-10-16 18:45:23 +03:00 committed by GitHub
parent e3becab18e
commit f69a29209f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5239,11 +5239,6 @@ unsigned menu_event(
ok_old = ok_current;
/* Menu must be alive, and input must be released after menu toggle. */
if ( !(menu_st->flags & MENU_ST_FLAG_ALIVE)
|| menu_st->input_driver_flushing_input > 0)
return ret;
/* Get pointer (mouse + touchscreen) input
* Note: Must be done regardless of menu screensaver
* state */
@ -5633,6 +5628,11 @@ unsigned menu_event(
menu_st->input_last_time_us = menu_st->current_time_us;
}
/* Menu must be alive, and input must be released after menu toggle. */
if ( !(menu_st->flags & MENU_ST_FLAG_ALIVE)
|| menu_st->input_driver_flushing_input > 0)
return MENU_ACTION_NOOP;
return ret;
}