mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 09:03:50 +09:00
Fix playlist item displays as empty string if no unicode title is present
This commit is contained in:
@ -94,7 +94,10 @@ namespace osu.Game.Beatmaps
|
|||||||
public RomanisableString ToRomanisableString()
|
public RomanisableString ToRomanisableString()
|
||||||
{
|
{
|
||||||
string author = Author == null ? string.Empty : $"({Author})";
|
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]
|
[JsonIgnore]
|
||||||
|
Reference in New Issue
Block a user