summaryrefslogtreecommitdiff
path: root/apps/settings_menu.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2006-10-19 09:42:58 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2006-10-19 09:42:58 +0000
commitda153da0be485aa4b937d58ee209eda7fb342053 (patch)
tree3506b6bba4935fa252250b892d023203e54f3513 /apps/settings_menu.c
parent1645d32aa38bd61806125c8d6b1c44fa3ac0f3ca (diff)
downloadrockbox-da153da0be485aa4b937d58ee209eda7fb342053.zip
rockbox-da153da0be485aa4b937d58ee209eda7fb342053.tar.gz
rockbox-da153da0be485aa4b937d58ee209eda7fb342053.tar.bz2
rockbox-da153da0be485aa4b937d58ee209eda7fb342053.tar.xz
Patch #5166 by Robert Keevil - Last.fm logging
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11269 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings_menu.c')
-rw-r--r--apps/settings_menu.c23
1 files changed, 21 insertions, 2 deletions
diff --git a/apps/settings_menu.c b/apps/settings_menu.c
index eabe153..0193aa0 100644
--- a/apps/settings_menu.c
+++ b/apps/settings_menu.c
@@ -56,6 +56,7 @@
#include "yesno.h"
#include "list.h"
#include "color_picker.h"
+#include "scrobbler.h"
#ifdef HAVE_LCD_BITMAP
#include "peakmeter.h"
@@ -1387,6 +1388,23 @@ static bool next_folder(void)
INT, names, 3, NULL );
}
+static bool audioscrobbler(void)
+{
+ bool result = set_bool_options(str(LANG_AUDIOSCROBBLER),
+ &global_settings.audioscrobbler,
+ STR(LANG_ON),
+ STR(LANG_OFF),
+ NULL);
+
+ if (!scrobbler_is_enabled() && global_settings.audioscrobbler)
+ gui_syncsplash(HZ*2, true, str(LANG_PLEASE_REBOOT));
+
+ if(!result)
+ scrobbler_shutdown();
+
+ return result;
+}
+
static bool codepage_setting(void)
{
static const struct opt_items names[] = {
@@ -1605,7 +1623,7 @@ static bool dircache(void)
NULL);
if (!dircache_is_enabled() && global_settings.dircache)
- gui_syncsplash(HZ*2, true, str(LANG_DIRCACHE_REBOOT));
+ gui_syncsplash(HZ*2, true, str(LANG_PLEASE_REBOOT));
if (!result)
dircache_disable();
@@ -1747,8 +1765,9 @@ static bool playback_settings_menu(void)
{ ID2P(LANG_ID3_ORDER), id3_order },
{ ID2P(LANG_NEXT_FOLDER), next_folder },
#ifdef HAVE_HEADPHONE_DETECTION
- { ID2P(LANG_UNPLUG), unplug_menu }
+ { ID2P(LANG_UNPLUG), unplug_menu },
#endif
+ { ID2P(LANG_AUDIOSCROBBLER), audioscrobbler}
};
bool old_shuffle = global_settings.playlist_shuffle;