summaryrefslogtreecommitdiff
path: root/apps/filetree.c
diff options
context:
space:
mode:
authorChristi Scarborough <christi@coraline.org>2005-06-29 12:23:09 +0000
committerChristi Scarborough <christi@coraline.org>2005-06-29 12:23:09 +0000
commit9e8918b0866b249a55c06a16a243cdd3dcdad305 (patch)
tree954d2eab9141f0a9a0777f9ce9eceb15af1b569a /apps/filetree.c
parent1f45cce4262bde3f91844701085076892b4743f8 (diff)
downloadrockbox-9e8918b0866b249a55c06a16a243cdd3dcdad305.tar.gz
rockbox-9e8918b0866b249a55c06a16a243cdd3dcdad305.zip
Resume rework. With the new resume function, 'Ask' and 'Ask Once' are redundant options, since you can resume after any startup using the resume key. These have been stripped out, and the resume code has been streamlined. A small bug in button handler initialisation has been fixed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6911 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/filetree.c')
-rw-r--r--apps/filetree.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/apps/filetree.c b/apps/filetree.c
index 60443a163c..c7a2dbf071 100644
--- a/apps/filetree.c
+++ b/apps/filetree.c
@@ -447,13 +447,11 @@ int ft_enter(struct tree_context* c)
447 } 447 }
448 448
449 if ( play ) { 449 if ( play ) {
450 if ( global_settings.resume ) { 450 /* the resume_index must always be the index in the
451 /* the resume_index must always be the index in the 451 shuffled list in case shuffle is enabled */
452 shuffled list in case shuffle is enabled */ 452 global_settings.resume_index = start_index;
453 global_settings.resume_index = start_index; 453 global_settings.resume_offset = 0;
454 global_settings.resume_offset = 0; 454 settings_save();
455 settings_save();
456 }
457 455
458 start_wps = true; 456 start_wps = true;
459 } 457 }