mirror of https://github.com/ppy/osu
Fix now playing output showing empty brackets when no difficulty specified
This commit is contained in:
parent
01a5e401d4
commit
0c74f1aaa9
|
@ -149,7 +149,12 @@ public DifficultyRating DifficultyRating
|
|||
}
|
||||
}
|
||||
|
||||
public override string ToString() => $"{Metadata} [{Version}]".Trim();
|
||||
public override string ToString()
|
||||
{
|
||||
string version = string.IsNullOrEmpty(Version) ? string.Empty : $"[{Version}]";
|
||||
|
||||
return $"{Metadata} {version}".Trim();
|
||||
}
|
||||
|
||||
public bool Equals(BeatmapInfo other)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue