Skip to content

Commit

Permalink
global status: don't save unmoidified index
Browse files Browse the repository at this point in the history
Change-Id: I19d9ee97ff54465ac300ffabb1ee7e3eed98f44e
  • Loading branch information
bahusoid committed Oct 2, 2024
1 parent 5400a79 commit 468b29a
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions apps/filetree.c
Original file line number Diff line number Diff line change
Expand Up @@ -795,14 +795,17 @@ int ft_enter(struct tree_context* c)
}

if ( play ) {
/* the resume_index must always be the index in the
shuffled list in case shuffle is enabled */
global_status.resume_index = start_index;
global_status.resume_crc32 =
playlist_get_filename_crc32(NULL, start_index);
global_status.resume_elapsed = 0;
global_status.resume_offset = 0;
status_save();
if (global_status.resume_index != start_index)
{
/* the resume_index must always be the index in the
shuffled list in case shuffle is enabled */
global_status.resume_index = start_index;
global_status.resume_crc32 =
playlist_get_filename_crc32(NULL, start_index);
global_status.resume_elapsed = 0;
global_status.resume_offset = 0;
status_save();
}
rc = GO_TO_WPS;
}
else {
Expand Down

0 comments on commit 468b29a

Please sign in to comment.