Give the plugin menu its own title (when configured). Fixes FS #7371

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13856 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Peter D'Hoye 2007-07-11 22:05:38 +00:00
parent 28b0c58726
commit 5737254429
2 changed files with 7 additions and 1 deletions

View file

@ -181,7 +181,7 @@ static int browser(void* param)
#endif
case GO_TO_BROWSEPLUGINS:
filter = SHOW_PLUGINS;
snprintf(folder, MAX_PATH, "%s/", PLUGIN_DIR);
snprintf(folder, MAX_PATH, "%s", PLUGIN_DIR);
break;
}
ret_val = rockbox_browse(folder, filter);

View file

@ -360,6 +360,12 @@ static int update_dir(void)
gui_synclist_set_title(&tree_lists, str(LANG_DIR_BROWSER),
filetype_get_icon(ATTR_DIRECTORY));
}
else if(0 == strcasecmp(tc.currdir, PLUGIN_DIR))
{
/* Display "Plugins" for the rocks dir */
gui_synclist_set_title(&tree_lists, str(LANG_PLUGINS),
filetype_get_icon(ATTR_DIRECTORY));
}
else
gui_synclist_set_title(&tree_lists, title,
filetype_get_icon(ATTR_DIRECTORY));