mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-07-10 13:29:52 -04:00
[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:
parent
3152beee32
commit
e80e1448f1
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue