iPod: Reset the settings if the hold button is turned on before Rockbox starts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8826 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
747664918b
commit
1272c8a696
1 changed files with 5 additions and 0 deletions
|
@ -332,9 +332,14 @@ void init(void)
|
|||
|
||||
settings_calc_config_sector();
|
||||
|
||||
#if defined(SETTINGS_RESET) || (CONFIG_KEYPAD == IPOD_4G_PAD)
|
||||
#ifdef SETTINGS_RESET
|
||||
/* Reset settings if holding the rec button. */
|
||||
if ((button_status() & SETTINGS_RESET) == SETTINGS_RESET)
|
||||
#else
|
||||
/* Reset settings if the hold button is turned on */
|
||||
if (button_hold())
|
||||
#endif
|
||||
{
|
||||
gui_syncsplash(HZ*2, true, str(LANG_RESET_DONE_CLEAR));
|
||||
settings_reset();
|
||||
|
|
Loading…
Reference in a new issue