mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
[BugFix] run filebrowser automatically for out of tree shortcuts
missed a case for out of tree shortcuts coming from the quickscreen in the main menu Change-Id: I25714f9deaba5f0c88e50de03ead747733b7f568
This commit is contained in:
parent
83566008a0
commit
9e802be969
1 changed files with 10 additions and 4 deletions
|
@ -1009,11 +1009,17 @@ void root_menu(void)
|
||||||
{
|
{
|
||||||
/* shortcuts may take several trips through the GO_TO_PLUGIN
|
/* shortcuts may take several trips through the GO_TO_PLUGIN
|
||||||
case make sure we preserve and restore the origin */
|
case make sure we preserve and restore the origin */
|
||||||
if (shortcut_origin != GO_TO_ROOT)
|
if(tree_get_context()->out_of_tree > 0) /* a shortcut has been selected */
|
||||||
{
|
{
|
||||||
if(tree_get_context()->out_of_tree > 0) /* a shortcut has been selected */
|
next_screen = GO_TO_FILEBROWSER;
|
||||||
next_screen = GO_TO_FILEBROWSER;
|
shortcut_origin = GO_TO_ROOT;
|
||||||
else if (shortcut_origin != GO_TO_WPS)
|
/* note in some cases there is a screen to return to
|
||||||
|
but the history is rewritten as if you browsed here
|
||||||
|
from the root so return there when finished */
|
||||||
|
}
|
||||||
|
else if (shortcut_origin != GO_TO_ROOT)
|
||||||
|
{
|
||||||
|
if (shortcut_origin != GO_TO_WPS)
|
||||||
next_screen = shortcut_origin;
|
next_screen = shortcut_origin;
|
||||||
shortcut_origin = GO_TO_ROOT;
|
shortcut_origin = GO_TO_ROOT;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue