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/filetree.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'apps/filetree.c') 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, if (global_settings.playlist_shuffle) playlist_shuffle(current_tick, -1); - playlist_set_modified(NULL, false); playlist_start(0, 0, 0); return true; } @@ -546,7 +545,6 @@ int ft_enter(struct tree_context* c) start_index = 0; } - playlist_set_modified(NULL, false); playlist_start(start_index, 0, 0); play = true; } -- cgit v1.2.3