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
This commit is contained in:
William Wilgus 2021-11-07 02:15:27 -05:00 committed by William Wilgus
parent 1d67f83c58
commit cfbc1cfce1

View file

@ -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);
}