1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:18:22 +08:00

Fix now playing output showing empty brackets when no difficulty specified

This commit is contained in:
Dean Herbert 2020-04-22 09:08:33 +09:00
parent 01a5e401d4
commit 0c74f1aaa9

View File

@ -149,7 +149,12 @@ namespace osu.Game.Beatmaps
}
}
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)
{