From 5737254429fd1d37ced19aa7b1b397c4794c383b Mon Sep 17 00:00:00 2001 From: Peter D'Hoye Date: Wed, 11 Jul 2007 22:05:38 +0000 Subject: [PATCH] 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 --- apps/root_menu.c | 2 +- apps/tree.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/root_menu.c b/apps/root_menu.c index e99cb4aa88..ff954a0a07 100644 --- a/apps/root_menu.c +++ b/apps/root_menu.c @@ -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); diff --git a/apps/tree.c b/apps/tree.c index e3735beb1b..b54238b08c 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -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));