summaryrefslogtreecommitdiff
path: root/apps/onplay.c
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2023-03-29 10:58:30 +0100
committerAidan MacDonald <amachronic@protonmail.com>2023-10-01 11:05:29 -0400
commit7ccbd705f43553ff358d6713c8d6ac7cc9e3c343 (patch)
treecbd8b34688194715632f03e9248bb3a2e8a3dda7 /apps/onplay.c
parent781f955aa2fb813dd87986cbcc22c1676a2dd9a9 (diff)
downloadrockbox-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/onplay.c')
-rw-r--r--apps/onplay.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/onplay.c b/apps/onplay.c
index 5f8af77fca..4157544d28 100644
--- a/apps/onplay.c
+++ b/apps/onplay.c
@@ -358,6 +358,7 @@ static int add_to_playlist(void* arg)
358 onplay_result = ONPLAY_START_PLAY; 358 onplay_result = ONPLAY_START_PLAY;
359 } 359 }
360 360
361 playlist_set_modified(NULL, true);
361 return false; 362 return false;
362} 363}
363 364