1
0
Fork 0
forked from len0rd/rockbox

resume_index was being reset too early in ask once resume mode resulting in incorrect track being played.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3102 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Hardeep Sidhu 2003-01-15 22:46:49 +00:00
parent 3568d39011
commit 86a4499d28

View file

@ -467,11 +467,6 @@ bool ask_resume(void)
if ( global_settings.resume == RESUME_ON )
return true;
if ( global_settings.resume == RESUME_ASK_ONCE) {
global_settings.resume_index = -1;
settings_save();
}
lcd_clear_display();
lcd_puts(0,0,str(LANG_RESUME_ASK));
#ifdef HAVE_LCD_CHARCELLS
@ -485,6 +480,12 @@ bool ask_resume(void)
if (button_get(true) == BUTTON_PLAY)
return true;
if ( global_settings.resume == RESUME_ASK_ONCE) {
global_settings.resume_index = -1;
settings_save();
}
return false;
}