summaryrefslogtreecommitdiff
path: root/apps/settings_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings_menu.c')
-rw-r--r--apps/settings_menu.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/settings_menu.c b/apps/settings_menu.c
index b66104220f..0cbe5344fb 100644
--- a/apps/settings_menu.c
+++ b/apps/settings_menu.c
@@ -49,8 +49,10 @@
49#include "database.h" 49#include "database.h"
50#include "dir.h" 50#include "dir.h"
51#include "dircache.h" 51#include "dircache.h"
52#ifdef HAVE_TAGCACHE
52#include "tagcache.h" 53#include "tagcache.h"
53#include "tagtree.h" 54#include "tagtree.h"
55#endif
54#include "rbunicode.h" 56#include "rbunicode.h"
55#include "splash.h" 57#include "splash.h"
56#include "yesno.h" 58#include "yesno.h"
@@ -749,10 +751,17 @@ static bool dir_filter(void)
749 { STR(LANG_FILTER_SUPPORTED) }, 751 { STR(LANG_FILTER_SUPPORTED) },
750 { STR(LANG_FILTER_MUSIC) }, 752 { STR(LANG_FILTER_MUSIC) },
751 { STR(LANG_FILTER_PLAYLIST) }, 753 { STR(LANG_FILTER_PLAYLIST) },
754#ifdef HAVE_TAGCACHE
752 { STR(LANG_FILTER_ID3DB) } 755 { STR(LANG_FILTER_ID3DB) }
756#endif
753 }; 757 };
758#ifdef HAVE_TAGCACHE
754 return set_option( str(LANG_FILTER), &global_settings.dirfilter, INT, 759 return set_option( str(LANG_FILTER), &global_settings.dirfilter, INT,
755 names, 5, NULL ); 760 names, 5, NULL );
761#else
762 return set_option( str(LANG_FILTER), &global_settings.dirfilter, INT,
763 names, 4, NULL );
764#endif
756} 765}
757 766
758static bool sort_case(void) 767static bool sort_case(void)
@@ -1632,6 +1641,7 @@ static bool dircache(void)
1632} 1641}
1633#endif /* HAVE_DIRCACHE */ 1642#endif /* HAVE_DIRCACHE */
1634 1643
1644#ifdef HAVE_TAGCACHE
1635#ifdef HAVE_TC_RAMCACHE 1645#ifdef HAVE_TC_RAMCACHE
1636static bool tagcache_ram(void) 1646static bool tagcache_ram(void)
1637{ 1647{
@@ -1688,6 +1698,7 @@ static bool tagcache_settings_menu(void)
1688 menu_exit(m); 1698 menu_exit(m);
1689 return result; 1699 return result;
1690} 1700}
1701#endif
1691 1702
1692#ifdef HAVE_HEADPHONE_DETECTION 1703#ifdef HAVE_HEADPHONE_DETECTION
1693static bool unplug_mode(void) 1704static bool unplug_mode(void)
@@ -1853,7 +1864,9 @@ static bool fileview_settings_menu(void)
1853 { ID2P(LANG_FOLLOW), browse_current }, 1864 { ID2P(LANG_FOLLOW), browse_current },
1854 { ID2P(LANG_SHOW_ICONS), show_icons }, 1865 { ID2P(LANG_SHOW_ICONS), show_icons },
1855 { ID2P(LANG_SHOW_PATH), show_path }, 1866 { ID2P(LANG_SHOW_PATH), show_path },
1867#ifdef HAVE_TAGCACHE
1856 { ID2P(LANG_TAGCACHE), tagcache_settings_menu}, 1868 { ID2P(LANG_TAGCACHE), tagcache_settings_menu},
1869#endif
1857 }; 1870 };
1858 1871
1859 m=menu_init( items, sizeof(items) / sizeof(*items), NULL, 1872 m=menu_init( items, sizeof(items) / sizeof(*items), NULL,