[bugfix] Remember position in plugin browser menu

make the struct static so we can keep using the same
browse context between invocations

Change-Id: Ia154a78935755e1decb6abe50291d49e4404fb95
This commit is contained in:
William Wilgus 2026-06-04 02:11:26 -04:00
parent 3152beee32
commit e80e1448f1

View file

@ -55,12 +55,12 @@ static int plugins_menu(void* param)
intptr_t item = (intptr_t)param;
int ret;
struct browse_context browse = {
static struct browse_context browse = {
.dirfilter = SHOW_PLUGINS,
.title = str(items[item].id),
.icon = Icon_Plugin,
.root = items[item].path,
};
browse.root = items[item].path;
browse.title = str(items[item].id);
ret = rockbox_browse(&browse);