Have ACTION_TREE_ROOT_INIT cause ACTION_STD_MENU

So that a “scroll left” button can be repurposed
for returning to the main menu when there is no
existing menu button mapping.

Change-Id: I38515943313f69cc3241b3f523c94ea012471b88
This commit is contained in:
Christian Soffke 2021-10-23 23:57:22 +02:00
parent 139d447c6a
commit 0b1c05db40

View file

@ -754,7 +754,7 @@ bool gui_synclist_do_button(struct gui_synclist * lists,
if (lists->offset_position[0] == 0)
{
pgleft_allow_cancel = true;
*actionptr = ACTION_STD_CANCEL;
*actionptr = ACTION_STD_MENU;
return true;
}
*actionptr = ACTION_TREE_PGLEFT;