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.c22
1 files changed, 19 insertions, 3 deletions
diff --git a/apps/settings_menu.c b/apps/settings_menu.c
index ab0e21d098..e381a14595 100644
--- a/apps/settings_menu.c
+++ b/apps/settings_menu.c
@@ -49,6 +49,7 @@
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#include "tagcache.h"
52#include "rbunicode.h" 53#include "rbunicode.h"
53#include "splash.h" 54#include "splash.h"
54#include "yesno.h" 55#include "yesno.h"
@@ -1259,15 +1260,15 @@ static bool next_folder(void)
1259static bool runtimedb(void) 1260static bool runtimedb(void)
1260{ 1261{
1261 bool rc; 1262 bool rc;
1262 bool old = global_settings.runtimedb; 1263// bool old = global_settings.runtimedb;
1263 1264
1264 rc = set_bool( str(LANG_RUNTIMEDB_ACTIVE), 1265 rc = set_bool( str(LANG_RUNTIMEDB_ACTIVE),
1265 &global_settings.runtimedb ); 1266 &global_settings.runtimedb );
1266 if (old && !global_settings.runtimedb) 1267/* if (old && !global_settings.runtimedb)
1267 rundb_shutdown(); 1268 rundb_shutdown();
1268 if (!old && global_settings.runtimedb) 1269 if (!old && global_settings.runtimedb)
1269 rundb_init(); 1270 rundb_init();
1270 1271*/
1271 return rc; 1272 return rc;
1272} 1273}
1273 1274
@@ -1479,6 +1480,7 @@ static bool beep(void)
1479} 1480}
1480#endif 1481#endif
1481 1482
1483
1482#ifdef HAVE_DIRCACHE 1484#ifdef HAVE_DIRCACHE
1483static bool dircache(void) 1485static bool dircache(void)
1484{ 1486{
@@ -1497,6 +1499,16 @@ static bool dircache(void)
1497 return result; 1499 return result;
1498} 1500}
1499 1501
1502static bool tagcache_ram(void)
1503{
1504 bool result = set_bool_options(str(LANG_TAGCACHE),
1505 &global_settings.tagcache_ram,
1506 STR(LANG_TAGCACHE_RAM),
1507 STR(LANG_TAGCACHE_DISK),
1508 NULL);
1509
1510 return result;
1511}
1500#endif /* HAVE_DIRCACHE */ 1512#endif /* HAVE_DIRCACHE */
1501 1513
1502static bool playback_settings_menu(void) 1514static bool playback_settings_menu(void)
@@ -1523,6 +1535,10 @@ static bool playback_settings_menu(void)
1523#endif 1535#endif
1524 { ID2P(LANG_ID3_ORDER), id3_order }, 1536 { ID2P(LANG_ID3_ORDER), id3_order },
1525 { ID2P(LANG_NEXT_FOLDER), next_folder }, 1537 { ID2P(LANG_NEXT_FOLDER), next_folder },
1538#ifdef HAVE_DIRCACHE
1539 { ID2P(LANG_TAGCACHE), tagcache_ram },
1540#endif
1541 { ID2P(LANG_TAGCACHE_FORCE_UPDATE), tagcache_force_update },
1526 { ID2P(LANG_RUNTIMEDB_ACTIVE), runtimedb }, 1542 { ID2P(LANG_RUNTIMEDB_ACTIVE), runtimedb },
1527 }; 1543 };
1528 1544