summaryrefslogtreecommitdiff
path: root/apps/settings_menu.c
diff options
context:
space:
mode:
authorZakk Roberts <midk@rockbox.org>2006-05-29 05:19:18 +0000
committerZakk Roberts <midk@rockbox.org>2006-05-29 05:19:18 +0000
commitc32dc41834109ef739c4b7d1dc24d6ceac19b817 (patch)
treea1a54ef39607c54af4675145b216b3034ac0eadc /apps/settings_menu.c
parent068fb4947a5ab244384df97f9ad7b29e4fd4716f (diff)
downloadrockbox-c32dc41834109ef739c4b7d1dc24d6ceac19b817.tar.gz
rockbox-c32dc41834109ef739c4b7d1dc24d6ceac19b817.zip
Move TagCache options from Playback to File View menu - makes a lot more sense here; remove 'Gather Runtime Data' from Playback menu as it's not working and we don't want it in 3.0.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10010 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings_menu.c')
-rw-r--r--apps/settings_menu.c40
1 files changed, 12 insertions, 28 deletions
diff --git a/apps/settings_menu.c b/apps/settings_menu.c
index 5aa861a88e..bcf5a784c0 100644
--- a/apps/settings_menu.c
+++ b/apps/settings_menu.c
@@ -839,7 +839,7 @@ static bool sleep_timer(void)
839} 839}
840 840
841static bool scroll_speed(void) 841static bool scroll_speed(void)
842{ 842{
843 return set_int(str(LANG_SCROLL), "", UNIT_INT, 843 return set_int(str(LANG_SCROLL), "", UNIT_INT,
844 &global_settings.scroll_speed, 844 &global_settings.scroll_speed,
845 &lcd_scroll_speed, 1, 0, 15, NULL ); 845 &lcd_scroll_speed, 1, 0, 15, NULL );
@@ -1293,21 +1293,6 @@ static bool next_folder(void)
1293 return set_bool( str(LANG_NEXT_FOLDER), &global_settings.next_folder ); 1293 return set_bool( str(LANG_NEXT_FOLDER), &global_settings.next_folder );
1294} 1294}
1295 1295
1296static bool runtimedb(void)
1297{
1298 bool rc;
1299// bool old = global_settings.runtimedb;
1300
1301 rc = set_bool( str(LANG_RUNTIMEDB_ACTIVE),
1302 &global_settings.runtimedb );
1303/* if (old && !global_settings.runtimedb)
1304 rundb_shutdown();
1305 if (!old && global_settings.runtimedb)
1306 rundb_init();
1307*/
1308 return rc;
1309}
1310
1311static bool codepage_setting(void) 1296static bool codepage_setting(void)
1312{ 1297{
1313 static const struct opt_items names[] = { 1298 static const struct opt_items names[] = {
@@ -1571,12 +1556,7 @@ static bool playback_settings_menu(void)
1571 { ID2P(LANG_SPDIF_ENABLE), spdif }, 1556 { ID2P(LANG_SPDIF_ENABLE), spdif },
1572#endif 1557#endif
1573 { ID2P(LANG_ID3_ORDER), id3_order }, 1558 { ID2P(LANG_ID3_ORDER), id3_order },
1574 { ID2P(LANG_NEXT_FOLDER), next_folder }, 1559 { ID2P(LANG_NEXT_FOLDER), next_folder }
1575#ifdef HAVE_DIRCACHE
1576 { ID2P(LANG_TAGCACHE), tagcache_ram },
1577#endif
1578 { ID2P(LANG_TAGCACHE_FORCE_UPDATE), tagcache_force_update },
1579 { ID2P(LANG_RUNTIMEDB_ACTIVE), runtimedb },
1580 }; 1560 };
1581 1561
1582 bool old_shuffle = global_settings.playlist_shuffle; 1562 bool old_shuffle = global_settings.playlist_shuffle;
@@ -1655,12 +1635,16 @@ static bool fileview_settings_menu(void)
1655 bool result; 1635 bool result;
1656 1636
1657 static const struct menu_item items[] = { 1637 static const struct menu_item items[] = {
1658 { ID2P(LANG_SORT_CASE), sort_case }, 1638 { ID2P(LANG_SORT_CASE), sort_case },
1659 { ID2P(LANG_SORT_DIR), sort_dir }, 1639 { ID2P(LANG_SORT_DIR), sort_dir },
1660 { ID2P(LANG_SORT_FILE), sort_file }, 1640 { ID2P(LANG_SORT_FILE), sort_file },
1661 { ID2P(LANG_FILTER), dir_filter }, 1641 { ID2P(LANG_FILTER), dir_filter },
1662 { ID2P(LANG_FOLLOW), browse_current }, 1642 { ID2P(LANG_FOLLOW), browse_current },
1663 { ID2P(LANG_SHOW_ICONS), show_icons }, 1643 { ID2P(LANG_SHOW_ICONS), show_icons },
1644#ifdef HAVE_DIRCACHE
1645 { ID2P(LANG_TAGCACHE), tagcache_ram },
1646#endif
1647 { ID2P(LANG_TAGCACHE_FORCE_UPDATE), tagcache_force_update },
1664 }; 1648 };
1665 1649
1666 m=menu_init( items, sizeof(items) / sizeof(*items), NULL, 1650 m=menu_init( items, sizeof(items) / sizeof(*items), NULL,