mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
[Feature] run filebrowser automatically for out of tree shortcuts
supersedes g#5499 run .link shortcuts within menu shortcuts and just extends it to the whole plugin stack which makes sense as long as it doesn't cause any new bugs ;) Change-Id: If152f53cf6894430c1173a2af1410e7d0857825e
This commit is contained in:
parent
1e3e9c68c8
commit
83566008a0
2 changed files with 3 additions and 6 deletions
|
@ -1011,7 +1011,9 @@ void root_menu(void)
|
|||
case make sure we preserve and restore the origin */
|
||||
if (shortcut_origin != GO_TO_ROOT)
|
||||
{
|
||||
if (shortcut_origin != GO_TO_WPS)
|
||||
if(tree_get_context()->out_of_tree > 0) /* a shortcut has been selected */
|
||||
next_screen = GO_TO_FILEBROWSER;
|
||||
else if (shortcut_origin != GO_TO_WPS)
|
||||
next_screen = shortcut_origin;
|
||||
shortcut_origin = GO_TO_ROOT;
|
||||
}
|
||||
|
|
|
@ -620,11 +620,6 @@ int do_shortcut_menu(void *ignored)
|
|||
while (done == GO_TO_PREVIOUS)
|
||||
{
|
||||
list.count = shortcut_count;
|
||||
if(tree_get_context()->out_of_tree > 0) /* a shortcut has been selected */
|
||||
{
|
||||
done = GO_TO_FILEBROWSER;
|
||||
break;
|
||||
}
|
||||
|
||||
if (simplelist_show_list(&list))
|
||||
break; /* some error happened?! */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue