1
0
Fork 0
forked from len0rd/rockbox

[Bugfix] Plugins run by START_IN_SCREEN won't open another plugin

PLUGIN_GOTO_PLUGIN was using old key instead

Change-Id: If354bd441db7c0b0a476624c8c1dcb3d79f5d366
This commit is contained in:
William Wilgus 2025-01-04 13:41:08 -05:00 committed by William Wilgus
parent 384c35418a
commit 22d921c55c

View file

@ -780,10 +780,17 @@ 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)
{
if (key == (char*)LANG_SHORTCUTS)
{
op_entry->lang_id = LANG_SHORTCUTS;
}
else /* Bugfix ensure proper key */
{
key = (char*)LANG_OPEN_PLUGIN;
}
}
continue;
}
else