1
0
Fork 0
forked from len0rd/rockbox

playback_callback(): remove write-only old_repeat_mode

Also don't ignore this_item argument, it's being used

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28135 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2010-09-21 08:59:27 +00:00
parent 45f3e5fb94
commit 7d9df48478

View file

@ -215,15 +215,11 @@ MAKE_MENU(playback_settings,ID2P(LANG_PLAYBACK),0,
static int playback_callback(int action,const struct menu_item_ex *this_item)
{
static bool old_shuffle = false;
static int old_repeat_mode = 0;
(void)this_item;
switch (action)
{
case ACTION_ENTER_MENUITEM:
if (this_item == &shuffle_item)
old_shuffle = global_settings.playlist_shuffle;
else if (this_item == &repeat_mode)
old_repeat_mode = global_settings.repeat_mode;
break;
case ACTION_EXIT_MENUITEM: /* on exit */
if ((this_item == &shuffle_item) &&