1
0
Fork 0
forked from len0rd/rockbox

Setting reset fix red

Change-Id: I9174d7695b117fa10d10cda8ff9cccc50ebeb7f2
This commit is contained in:
William Wilgus 2022-06-20 20:16:55 -04:00
parent ed37c2e894
commit 6cdd142d5c

View file

@ -579,15 +579,12 @@ static void init(void)
if ((button_status() & SETTINGS_RESET) == SETTINGS_RESET) if ((button_status() & SETTINGS_RESET) == SETTINGS_RESET)
#else #else
/* Reset settings if the hold button is turned on */ /* Reset settings if the hold button is turned on */
if (button_hold()) if (global_settings.clear_settings_on_hold && button_hold())
#endif #endif
{
if (global_settings.clear_settings_on_hold)
{ {
splash(HZ*2, str(LANG_RESET_DONE_CLEAR)); splash(HZ*2, str(LANG_RESET_DONE_CLEAR));
settings_reset(); settings_reset();
} }
}
#endif #endif
#ifdef HAVE_DIRCACHE #ifdef HAVE_DIRCACHE