From 40e685fb7138dbd56855769c3bcd5568f0819f3c Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Sat, 25 Nov 2023 02:36:17 -0500 Subject: [Feature] run .link shortcuts within menu shortcuts Change-Id: Ifbc2b95ab367ae18fa51074a3f8ea551ad2ab6a8 --- apps/shortcuts.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'apps/shortcuts.c') diff --git a/apps/shortcuts.c b/apps/shortcuts.c index b52ff4a741..2ac3ceb3a0 100644 --- a/apps/shortcuts.c +++ b/apps/shortcuts.c @@ -620,13 +620,21 @@ 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?! */ + if (list.selection == -1) break; else { sc = get_shortcut(list.selection); + if (!sc) continue; @@ -668,6 +676,7 @@ int do_shortcut_menu(void *ignored) if (sc->type == SHORTCUT_FILE) browse.flags |= BROWSE_RUNFILE; done = rockbox_browse(&browse); + } break; case SHORTCUT_SETTING: -- cgit v1.2.3