summaryrefslogtreecommitdiff
path: root/apps
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 /apps
parent1d67f83c587cce30a9afa10f966cc04a86adb87b (diff)
downloadrockbox-cfbc1cfce1f427577d9fff4a57a00d9f29e2b76b.tar.gz
rockbox-cfbc1cfce1f427577d9fff4a57a00d9f29e2b76b.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
Diffstat (limited to 'apps')
-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)
913 break; 913 break;
914 case GO_TO_PLUGIN: 914 case GO_TO_PLUGIN:
915 { 915 {
916
916 char *key; 917 char *key;
917 if (global_status.last_screen == GO_TO_SHORTCUTMENU) 918 if (global_status.last_screen == GO_TO_SHORTCUTMENU)
918 { 919 {
920 if (open_plugin_entry.lang_id == LANG_OPEN_PLUGIN)
921 open_plugin_entry.lang_id = LANG_SHORTCUTS;
919 shortcut_origin = last_screen; 922 shortcut_origin = last_screen;
920 key = ID2P(LANG_SHORTCUTS); 923 key = ID2P(LANG_SHORTCUTS);
921 } 924 }