diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2023-03-29 10:58:30 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2023-10-01 11:05:29 -0400 |
commit | 7ccbd705f43553ff358d6713c8d6ac7cc9e3c343 (patch) | |
tree | cbd8b34688194715632f03e9248bb3a2e8a3dda7 /apps/filetree.c | |
parent | 781f955aa2fb813dd87986cbcc22c1676a2dd9a9 (diff) | |
download | rockbox-7ccbd705f43553ff358d6713c8d6ac7cc9e3c343.tar.gz rockbox-7ccbd705f43553ff358d6713c8d6ac7cc9e3c343.zip |
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
Diffstat (limited to 'apps/filetree.c')
-rw-r--r-- | apps/filetree.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/apps/filetree.c b/apps/filetree.c index 3e20c89924..42f13f39e7 100644 --- a/apps/filetree.c +++ b/apps/filetree.c | |||
@@ -148,7 +148,6 @@ bool ft_play_playlist(char* pathname, char* dirname, | |||
148 | if (global_settings.playlist_shuffle) | 148 | if (global_settings.playlist_shuffle) |
149 | playlist_shuffle(current_tick, -1); | 149 | playlist_shuffle(current_tick, -1); |
150 | 150 | ||
151 | playlist_set_modified(NULL, false); | ||
152 | playlist_start(0, 0, 0); | 151 | playlist_start(0, 0, 0); |
153 | return true; | 152 | return true; |
154 | } | 153 | } |
@@ -546,7 +545,6 @@ int ft_enter(struct tree_context* c) | |||
546 | start_index = 0; | 545 | start_index = 0; |
547 | } | 546 | } |
548 | 547 | ||
549 | playlist_set_modified(NULL, false); | ||
550 | playlist_start(start_index, 0, 0); | 548 | playlist_start(start_index, 0, 0); |
551 | play = true; | 549 | play = true; |
552 | } | 550 | } |