From 22d921c55cb32f2b1d3264533bfd27a70b21ca65 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Sat, 4 Jan 2025 13:41:08 -0500 Subject: [PATCH] [Bugfix] Plugins run by START_IN_SCREEN won't open another plugin PLUGIN_GOTO_PLUGIN was using old key instead Change-Id: If354bd441db7c0b0a476624c8c1dcb3d79f5d366 --- apps/root_menu.c | 11 +++++++++-- 1 file 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; }