summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2021-11-07 02:15:27 -0500
committerWilliam Wilgus <me.theuser@yahoo.com>2021-11-07 03:25:14 -0400
commitcfbc1cfce1f427577d9fff4a57a00d9f29e2b76b (patch)
tree6d42cf10dff99be22a2d23550a38fa91007b88a5
parent1d67f83c587cce30a9afa10f966cc04a86adb87b (diff)
downloadrockbox-cfbc1cfce1.tar.gz
rockbox-cfbc1cfce1.zip
Shortcuts, allow plugins to run through inbuilt file browser
since the plugin browser now exits before running plugins it has already loaded the dest data for the plugin the plugin will be run from the root menu with the open_plugin run key BUT, since the calls originated from the shortcuts menu it overwrites the run key with its own this patch allows the shortcuts menu to overwrite the dest key as well so it can run the loaded plugin Change-Id: I63912071d720df01c6fda25d92d9541818e52a43
-rw-r--r--apps/root_menu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/root_menu.c b/apps/root_menu.c
index 16c45c1509..49977ae453 100644
--- a/apps/root_menu.c
+++ b/apps/root_menu.c
@@ -913,9 +913,12 @@ void root_menu(void)
break;
case GO_TO_PLUGIN:
{
+
char *key;
if (global_status.last_screen == GO_TO_SHORTCUTMENU)
{
+ if (open_plugin_entry.lang_id == LANG_OPEN_PLUGIN)
+ open_plugin_entry.lang_id = LANG_SHORTCUTS;
shortcut_origin = last_screen;
key = ID2P(LANG_SHORTCUTS);
}