Suggest numbered filename when saving untitled playlist

+ update misleading comment for catalog_add_to_a_playlist's
m3u8name parameter (the keyboard picker will be shown even
if it's not NULL)

Change-Id: I7576a83fd40cdcdb7a912c90d8c1d9a8f25e277c
This commit is contained in:
Christian Soffke 2023-10-14 18:40:04 +02:00
parent 831faa3b82
commit bdec7ed31b
4 changed files with 18 additions and 16 deletions

View file

@ -43,7 +43,7 @@ bool catalog_pick_new_playlist_name(char *pl_name, size_t buf_size,
* sel_attr : the attributes that tell what type of file we're adding
* new_playlist : whether we want to create a new playlist or add to an
* existing one.
* m3u8name : filename to save the playlist to, NULL to show the keyboard
* m3u8name : NULL, or filename to show in keyboard picker (include the extension!)
* add_to_pl_cb : can be NULL, or a function responsible for handling the
* insert operations itself, in case the caller wants full
* control over how and what files are actually added.