bugfix PLUGIN_GOTO_ROOT didn't reset previous screen

Change-Id: I971eb5a6890d35c9a06c37526c8107c6afde35e5
This commit is contained in:
William Wilgus 2025-12-07 13:10:04 -05:00
parent 7a73ca2230
commit 11552d0710

View file

@ -808,13 +808,12 @@ static int load_plugin_screen(char *key)
}
continue;
}
else if (ret == PLUGIN_GOTO_ROOT)
{
ret_val = GO_TO_ROOT;
}
else
{
ret_val = GO_TO_PREVIOUS;
if (ret == PLUGIN_GOTO_ROOT)
ret_val = GO_TO_ROOT;
else
ret_val = GO_TO_PREVIOUS;
/* Prevents infinite loop with WPS, Plugins, Previous Screen*/
if (ret == PLUGIN_OK && old_global == GO_TO_WPS && !audio_status())
ret_val = GO_TO_ROOT;