From cfbc1cfce1f427577d9fff4a57a00d9f29e2b76b Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Sun, 7 Nov 2021 02:15:27 -0500 Subject: [PATCH] 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 --- apps/root_menu.c | 3 +++ 1 file changed, 3 insertions(+) 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); }