Stop import failures from being added to the imported model list

This commit is contained in:
Dean Herbert 2019-07-05 14:47:55 +09:00
parent d5a9542743
commit df7d31350c

View File

@ -114,6 +114,7 @@ namespace osu.Game.Database
lock (imported)
{
if (model != null)
imported.Add(model);
current++;
@ -140,7 +141,7 @@ namespace osu.Game.Database
{
notification.CompletionText = imported.Count == 1
? $"Imported {imported.First()}!"
: $"Imported {current} {HumanisedModelName}s!";
: $"Imported {imported.Count} {HumanisedModelName}s!";
if (imported.Count > 0 && PresentImport != null)
{