Fixed list captures not showing in the Hits DB on load.

This commit is contained in:
ruri
2019-04-13 11:29:33 +02:00
parent 2a89bdb072
commit a6a4d1fe89
+3 -1
View File
@@ -119,7 +119,9 @@ namespace RuriLib.Models
return Value;
case VarType.List:
return "[" + string.Join(", ", (List<string>)Value) + "]";
if (Value.GetType() == typeof(List<string>)) return "[" + string.Join(", ", (List<string>)Value) + "]"; // Coming internally
else if (Value.GetType() == typeof(object[])) return "[" + string.Join(", ", Value) + "]"; // Coming from the DB
else return "";
case VarType.Dictionary:
return "{" + string.Join(", ", ((Dictionary<string, string>)Value).Select(d => "(" + d.Key + ", " + d.Value + ")")) + "}";