mirror of
https://github.com/ppy/osu
synced 2025-01-26 15:53:12 +00:00
Fix playlist item displays as empty string if no unicode title is present
This commit is contained in:
parent
ace57a9ee9
commit
12371f7424
@ -94,7 +94,10 @@ namespace osu.Game.Beatmaps
|
||||
public RomanisableString ToRomanisableString()
|
||||
{
|
||||
string author = Author == null ? string.Empty : $"({Author})";
|
||||
return new RomanisableString($"{ArtistUnicode} - {TitleUnicode} {author}".Trim(), $"{Artist} - {Title} {author}".Trim());
|
||||
var artistUnicode = string.IsNullOrEmpty(ArtistUnicode) ? Artist : ArtistUnicode;
|
||||
var titleUnicode = string.IsNullOrEmpty(TitleUnicode) ? Title : TitleUnicode;
|
||||
|
||||
return new RomanisableString($"{artistUnicode} - {titleUnicode} {author}".Trim(), $"{Artist} - {Title} {author}".Trim());
|
||||
}
|
||||
|
||||
[JsonIgnore]
|
||||
|
Loading…
Reference in New Issue
Block a user