From 164253313e726986952c23271a36e3dd0848f718 Mon Sep 17 00:00:00 2001 From: Piotrekol <4990365+Piotrekol@users.noreply.github.com> Date: Sun, 30 Aug 2020 12:02:47 +0200 Subject: [PATCH] Fix: Beatmaps not displaying their md5 when mapId is not available --- CollectionManagerDll/DataTypes/Beatmap.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CollectionManagerDll/DataTypes/Beatmap.cs b/CollectionManagerDll/DataTypes/Beatmap.cs index ff8c2fe..ca74db9 100644 --- a/CollectionManagerDll/DataTypes/Beatmap.cs +++ b/CollectionManagerDll/DataTypes/Beatmap.cs @@ -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;