Exit Shortcuts on ACTION_STD_MENU

It makes it behave consistently with tree/playlists other menus. So it's possible to exit Shortcuts using Back button on Clip Zip or Power button on Rocker

Change-Id: I8a52422ed2d96d0727ddacf364f87878735c6e4c
This commit is contained in:
roman.artiukhin 2022-10-30 13:48:20 +02:00 committed by Aidan MacDonald
parent 4e60fb77e0
commit 59f3f43d10

View file

@ -446,7 +446,7 @@ static const char * shortcut_menu_get_name(int selected_item, void * data,
static int shortcut_menu_get_action(int action, struct gui_synclist *lists) static int shortcut_menu_get_action(int action, struct gui_synclist *lists)
{ {
(void)lists; (void)lists;
if (action == ACTION_STD_OK) if (action == ACTION_STD_OK || action == ACTION_STD_MENU)
return ACTION_STD_CANCEL; return ACTION_STD_CANCEL;
else if (action == ACTION_STD_QUICKSCREEN && action != ACTION_STD_CONTEXT) else if (action == ACTION_STD_QUICKSCREEN && action != ACTION_STD_CONTEXT)
return ACTION_STD_CANCEL; return ACTION_STD_CANCEL;