From 018ccf4e47a1c54d5d1e0d579f29dfc1a461835e Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Sun, 5 Jan 2025 21:41:18 +0100 Subject: [PATCH] Playlist Viewer: Fix dir not updated after playlist removal Missed this in 6a865f2430 If you entered the Playlist Viewer using the context menu option "View", instead of from the Playlist Catalogue, a playlist file that was deleted due to the removal of all of its tracks would still be displayed in the directory when returning Change-Id: I54ca34f70344e289d9e2cb413ee2a38e5bd7a92b --- apps/playlist_viewer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/playlist_viewer.c b/apps/playlist_viewer.c index c637082853..26eb87ce71 100644 --- a/apps/playlist_viewer.c +++ b/apps/playlist_viewer.c @@ -647,7 +647,10 @@ static void close_playlist_viewer(void) save_playlist_screen(viewer.playlist); else if (!viewer.num_tracks && confirm_delete_yesno(viewer.playlist->filename) == YESNO_YES) + { remove(viewer.playlist->filename); + reload_directory(); + } } playlist_close(viewer.playlist); }