forked from len0rd/rockbox
resume ask once option added
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2672 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a3e1648856
commit
c88751ffa5
4 changed files with 20 additions and 3 deletions
|
|
@ -454,6 +454,11 @@ 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
|
||||
|
|
@ -463,6 +468,7 @@ bool ask_resume(void)
|
|||
lcd_puts(0,2,str(LANG_RESUME_CANCEL_RECORDER));
|
||||
#endif
|
||||
lcd_update();
|
||||
|
||||
if (button_get(true) == BUTTON_PLAY)
|
||||
return true;
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue