[bugfix] Remember position in plugin browser menu
rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]> Thu, 4 Jun 2026 02:33:45 -0400
| Newsgroups | gmane.comp.systems.archos.rockbox.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit e80e1448f126839c5cfb6c4cc34dcd7a93bbed10 Author: William Wilgus <[email protected]> Date: Thu Jun 4 02:11:26 2026 -0400 [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 diff --git a/apps/menus/plugin_menu.c b/apps/menus/plugin_menu.c index 8cb0a33123..05fb2087c5 100644 --- a/apps/menus/plugin_menu.c +++ b/apps/menus/plugin_menu.c @@ -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); -- rockbox-cvs mailing list [email protected] https://lists.haxx.se/mailman/listinfo/rockbox-cvs