forked from len0rd/rockbox
playlist: Rework playlist modified detection and dirplay
The modified state is now an explicit flag that has to be set whenever a user-triggered modification occurs. This is recorded in the control file to ensure it doesn't get lost after resume. There may be some places I missed where the modified flag should be set/cleared, but it seems to work well enough right now. Change-Id: I3bdba358fc495b4ca84e389ac6e7bcbef820c219
This commit is contained in:
parent
781f955aa2
commit
7ccbd705f4
8 changed files with 101 additions and 50 deletions
|
|
@ -1106,7 +1106,6 @@ bool bookmark_play(char *resume_file, int index, unsigned long elapsed,
|
|||
if (global_settings.playlist_shuffle)
|
||||
playlist_shuffle(seed, -1);
|
||||
|
||||
playlist_set_modified(NULL, false);
|
||||
playlist_start(index, elapsed, offset);
|
||||
started = true;
|
||||
}
|
||||
|
|
@ -1159,7 +1158,6 @@ bool bookmark_play(char *resume_file, int index, unsigned long elapsed,
|
|||
return false;
|
||||
}
|
||||
|
||||
playlist_set_modified(NULL, false);
|
||||
playlist_start(index, elapsed, offset);
|
||||
started = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue