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:
parent
3568d39011
commit
86a4499d28
1 changed files with 6 additions and 5 deletions
11
apps/tree.c
11
apps/tree.c
|
@ -467,11 +467,6 @@ bool ask_resume(void)
|
||||||
if ( global_settings.resume == RESUME_ON )
|
if ( global_settings.resume == RESUME_ON )
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if ( global_settings.resume == RESUME_ASK_ONCE) {
|
|
||||||
global_settings.resume_index = -1;
|
|
||||||
settings_save();
|
|
||||||
}
|
|
||||||
|
|
||||||
lcd_clear_display();
|
lcd_clear_display();
|
||||||
lcd_puts(0,0,str(LANG_RESUME_ASK));
|
lcd_puts(0,0,str(LANG_RESUME_ASK));
|
||||||
#ifdef HAVE_LCD_CHARCELLS
|
#ifdef HAVE_LCD_CHARCELLS
|
||||||
|
@ -485,6 +480,12 @@ bool ask_resume(void)
|
||||||
|
|
||||||
if (button_get(true) == BUTTON_PLAY)
|
if (button_get(true) == BUTTON_PLAY)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
if ( global_settings.resume == RESUME_ASK_ONCE) {
|
||||||
|
global_settings.resume_index = -1;
|
||||||
|
settings_save();
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue