summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2025-01-04 13:41:08 -0500
committerWilliam Wilgus <me.theuser@yahoo.com>2025-01-04 15:18:35 -0500
commit22d921c55cb32f2b1d3264533bfd27a70b21ca65 (patch)
tree80f212d99574b232d7ed0914fcfc41770e6a5096
parent384c35418a8e693aa0a0522911edfcc58ef23069 (diff)
downloadrockbox-22d921c55c.tar.gz
rockbox-22d921c55c.zip
[Bugfix] Plugins run by START_IN_SCREEN won't open another plugin
PLUGIN_GOTO_PLUGIN was using old key instead Change-Id: If354bd441db7c0b0a476624c8c1dcb3d79f5d366
-rw-r--r--apps/root_menu.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/apps/root_menu.c b/apps/root_menu.c
index 7c75b12586..6cd9cfc3a2 100644
--- a/apps/root_menu.c
+++ b/apps/root_menu.c
@@ -780,9 +780,16 @@ static int load_plugin_screen(char *key)
ret_val = GO_TO_WPS;
else if (ret == PLUGIN_GOTO_PLUGIN)
{
- if (key == (char*)LANG_SHORTCUTS && op_entry->lang_id == LANG_OPEN_PLUGIN)
+ if(op_entry->lang_id == LANG_OPEN_PLUGIN)
{
- op_entry->lang_id = LANG_SHORTCUTS;
+ if (key == (char*)LANG_SHORTCUTS)
+ {
+ op_entry->lang_id = LANG_SHORTCUTS;
+ }
+ else /* Bugfix ensure proper key */
+ {
+ key = (char*)LANG_OPEN_PLUGIN;
+ }
}
continue;
}