Skip to content

Commit

Permalink
Fix: Beatmaps not displaying their md5 when mapId is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotrekol committed Aug 30, 2020
1 parent b4ec134 commit 1642533
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CollectionManagerDll/DataTypes/Beatmap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -530,9 +530,9 @@ public override string ToString()
{
if (string.IsNullOrEmpty(Artist) && string.IsNullOrEmpty(Title))
{
if (string.IsNullOrEmpty(Md5))
return Md5;
return "mapId: " + MapId;
if (MapId > 0)
return "mapId: " + MapId;
return $"unknown: {Md5}";
}
var baseStr = Artist + " - " + Title;
return baseStr;
Expand Down

0 comments on commit 1642533

Please sign in to comment.