From 7ccbd705f43553ff358d6713c8d6ac7cc9e3c343 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Wed, 29 Mar 2023 10:58:30 +0100 Subject: 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 --- apps/onplay.c | 1 + 1 file changed, 1 insertion(+) (limited to 'apps/onplay.c') 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) onplay_result = ONPLAY_START_PLAY; } + playlist_set_modified(NULL, true); return false; } -- cgit v1.2.3