summaryrefslogtreecommitdiff
path: root/apps/menus
diff options
context:
space:
mode:
authorSteve Bavin <pondlife@pondlife.me>2007-03-07 19:56:15 +0000
committerSteve Bavin <pondlife@pondlife.me>2007-03-07 19:56:15 +0000
commit8137489e2b967e40c15005c8a4c09903a8a24fc4 (patch)
tree752564abdbe09360dcc97da686d3e45f244578a2 /apps/menus
parent99b2742cd0de7181677f3aa7222caa5dc358ee12 (diff)
downloadrockbox-8137489e2b967e40c15005c8a4c09903a8a24fc4.zip
rockbox-8137489e2b967e40c15005c8a4c09903a8a24fc4.tar.gz
rockbox-8137489e2b967e40c15005c8a4c09903a8a24fc4.tar.bz2
rockbox-8137489e2b967e40c15005c8a4c09903a8a24fc4.tar.xz
Lead user through database initialisation
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12678 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/menus')
-rw-r--r--apps/menus/settings_menu.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/apps/menus/settings_menu.c b/apps/menus/settings_menu.c
index a58792b..dd9ad73 100644
--- a/apps/menus/settings_menu.c
+++ b/apps/menus/settings_menu.c
@@ -45,14 +45,27 @@
/***********************************/
/* TAGCACHE MENU */
#ifdef HAVE_TAGCACHE
+
+static void tagcache_rebuild_with_splash(void)
+{
+ tagcache_rebuild();
+ gui_syncsplash(HZ*2, true, str(LANG_TAGCACHE_FORCE_UPDATE_SPLASH));
+}
+
+static void tagcache_update_with_splash(void)
+{
+ tagcache_update();
+ gui_syncsplash(HZ*2, true, str(LANG_TAGCACHE_FORCE_UPDATE_SPLASH));
+}
+
#ifdef HAVE_TC_RAMCACHE
MENUITEM_SETTING(tagcache_ram, &global_settings.tagcache_ram, NULL);
#endif
MENUITEM_SETTING(tagcache_autoupdate, &global_settings.tagcache_autoupdate, NULL);
MENUITEM_FUNCTION(tc_init, ID2P(LANG_TAGCACHE_FORCE_UPDATE),
- (int(*)(void))tagcache_rebuild, NULL, Icon_NOICON);
+ (int(*)(void))tagcache_rebuild_with_splash, NULL, Icon_NOICON);
MENUITEM_FUNCTION(tc_update, ID2P(LANG_TAGCACHE_UPDATE),
- (int(*)(void))tagcache_update, NULL, Icon_NOICON);
+ (int(*)(void))tagcache_update_with_splash, NULL, Icon_NOICON);
MENUITEM_SETTING(runtimedb, &global_settings.runtimedb, NULL);
MENUITEM_FUNCTION(tc_export, ID2P(LANG_TAGCACHE_EXPORT),
(int(*)(void))tagtree_export, NULL, Icon_NOICON);