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:
parent
45f3e5fb94
commit
7d9df48478
1 changed files with 0 additions and 4 deletions
|
|
@ -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) &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue