Reformat database titles
This commit is contained in:
parent
ef53037cdc
commit
72d38a4b3c
|
@ -801,9 +801,12 @@ static int action_get_title_generic(char *s, size_t len,
|
||||||
string_list_deinitialize(&list_path);
|
string_list_deinitialize(&list_path);
|
||||||
|
|
||||||
if (!string_is_empty(elem0_path))
|
if (!string_is_empty(elem0_path))
|
||||||
snprintf(s, len, "%s- %s",
|
{
|
||||||
|
path_remove_extension(elem0_path);
|
||||||
|
snprintf(s, len, "%s: %s",
|
||||||
text,
|
text,
|
||||||
path_basename(elem0_path));
|
path_basename(elem0_path));
|
||||||
|
}
|
||||||
else
|
else
|
||||||
strlcpy(s, text, len);
|
strlcpy(s, text, len);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue