Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Delete bookmarks when replacing unrelated playlist

After saving a playlist to an existing file with
a different name, any saved bookmarks for the old
playlist were still displayed for the new one.

Change-Id: Ic2666bdaf7ec6e25456283fc15760c568dd7ac38

+10
+10
apps/playlist_catalog.c
··· 411 411 bool catalog_pick_new_playlist_name(char *pl_name, size_t buf_size, 412 412 const char* curr_pl_name) 413 413 { 414 + char bmark_file[MAX_PATH + 7]; 414 415 bool do_save = false; 415 416 while (!do_save && !remove_extension(pl_name) && 416 417 !kbd_input(pl_name, buf_size - 7, NULL)) ··· 421 422 /* warn before overwriting existing (different) playlist */ 422 423 if ((!curr_pl_name || strcmp(curr_pl_name, pl_name)) && 423 424 file_exists(pl_name)) 425 + { 424 426 do_save = confirm_overwrite_yesno() == YESNO_YES; 427 + 428 + if (do_save) /* delete bookmark file unrelated to new playlist */ 429 + { 430 + snprintf(bmark_file, sizeof(bmark_file), "%s.bmark", pl_name); 431 + if (file_exists(bmark_file)) 432 + remove(bmark_file); 433 + } 434 + } 425 435 } 426 436 return do_save; 427 437 }