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
1 changed files with 6 additions and 1 deletions

View File

@ -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) public bool Equals(BeatmapInfo other)
{ {