Open Plugin cache plugin entry when possible

leave plugin entries in ram and try not to save them unless necessary
doesn't use more space just a bit of careful ordering with the buffer

Change-Id: I1973e9ad4655c2544f596b37cee35601a0cffa94
This commit is contained in:
William Wilgus 2021-03-10 19:07:06 -05:00 committed by William Wilgus
parent 10b873c407
commit 29fa47d43d
4 changed files with 104 additions and 49 deletions

View file

@ -856,6 +856,9 @@ void root_menu(void)
next_screen = load_plugin_screen(path, param);
if (next_screen != GO_TO_PLUGIN)
open_plugin_add_path(NULL, NULL, NULL);
/* shortcuts may take several trips through the GO_TO_PLUGIN case
make sure we preserve and restore the origin */
if (next_screen == GO_TO_PREVIOUS && shortcut_origin != GO_TO_ROOT)