diff options
author | Christian Soffke <christian.soffke@gmail.com> | 2025-01-05 21:41:18 +0100 |
---|---|---|
committer | Christian Soffke <christian.soffke@gmail.com> | 2025-01-05 21:41:18 +0100 |
commit | 018ccf4e47a1c54d5d1e0d579f29dfc1a461835e (patch) | |
tree | c26cc4cb13d0c291de2dc5e6f8c2917ba6dcad20 | |
parent | 00066a49277809731666500579ba7e428391aa4f (diff) | |
download | rockbox-018ccf4e47.tar.gz rockbox-018ccf4e47.zip |
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
-rw-r--r-- | apps/playlist_viewer.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); } |