summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2024-04-01 18:20:47 +0100
committerAidan MacDonald <amachronic@protonmail.com>2024-04-01 18:21:37 +0100
commit9d585cbc055e91d58bcc2ce16e80021400658362 (patch)
treeb3eb2f7f7aa5b71d9469f694443e4737d1e3b03f
parentf026cc4e176fb80e8d592b95d7a012b7565dd6cc (diff)
downloadrockbox-9d585cbc05.tar.gz
rockbox-9d585cbc05.zip
Fix red in f026cc4e176f
Change-Id: I9ea1e18a8658a51bf0c917bec372f7509569ede2
-rw-r--r--apps/onplay.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/apps/onplay.c b/apps/onplay.c
index a85284c7d0..0b5dc2fe27 100644
--- a/apps/onplay.c
+++ b/apps/onplay.c
@@ -1390,6 +1390,7 @@ static bool set_catalogdir(void)
MENUITEM_FUNCTION(set_catalogdir_item, 0, ID2P(LANG_PLAYLIST_DIR),
set_catalogdir, clipboard_callback, Icon_Playlist);
+#ifdef HAVE_TAGCACHE
static bool set_databasedir(void)
{
path_append(global_settings.tagcache_db_path, selected_file,
@@ -1398,7 +1399,7 @@ static bool set_databasedir(void)
struct tagcache_stat *tc_stat = tagcache_get_stat();
if (strcasecmp(global_settings.tagcache_db_path, tc_stat->db_path))
{
- splashf(HZ, ID2P(LANG_PLEASE_REBOOT));
+ splash(HZ, ID2P(LANG_PLEASE_REBOOT));
}
settings_save();
@@ -1406,11 +1407,14 @@ static bool set_databasedir(void)
}
MENUITEM_FUNCTION(set_databasedir_item, 0, ID2P(LANG_DATABASE_DIR),
set_databasedir, clipboard_callback, Icon_Audio);
+#endif
MAKE_ONPLAYMENU(set_as_dir_menu, ID2P(LANG_SET_AS),
clipboard_callback, Icon_NOICON,
&set_catalogdir_item,
+#ifdef HAVE_TAGCACHE
&set_databasedir_item,
+#endif
#ifdef HAVE_RECORDING
&set_recdir_item,
#endif
@@ -1472,11 +1476,13 @@ static int clipboard_callback(int action,
if (this_item == &delete_dir_item ||
this_item == &set_startdir_item ||
this_item == &set_catalogdir_item ||
+#ifdef HAVE_TAGCACHE
this_item == &set_databasedir_item ||
- this_item == &set_as_dir_menu
+#endif
#ifdef HAVE_RECORDING
- || this_item == &set_recdir_item
+ this_item == &set_recdir_item ||
#endif
+ this_item == &set_as_dir_menu
)
return action;
}