summaryrefslogtreecommitdiffstats
path: root/apps/menus/plugin_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/menus/plugin_menu.c')
-rw-r--r--apps/menus/plugin_menu.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/menus/plugin_menu.c b/apps/menus/plugin_menu.c
index cbc1ce03f2..fa0d721c05 100644
--- a/apps/menus/plugin_menu.c
+++ b/apps/menus/plugin_menu.c
@@ -54,11 +54,14 @@ static void pm_handler(unsigned short id, void *data)
static int plugins_menu(void* param)
{
intptr_t item = (intptr_t)param;
- struct browse_context browse;
int ret;
- browse_context_init(&browse, SHOW_PLUGINS, 0, str(items[item].id),
- Icon_Plugin, items[item].path, NULL);
+ struct browse_context browse = {
+ .dirfilter = SHOW_PLUGINS,
+ .title = str(items[item].id),
+ .icon = Icon_Plugin,
+ .root = items[item].path,
+ };
ret = rockbox_browse(&browse);