1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-06 08:22:56 +08:00

Display number of failing models during batch-import

This commit is contained in:
Salman Ahmed 2023-01-10 13:32:03 +03:00
parent c6b6d0dcfe
commit 0d6b9ebc0f

View File

@ -154,9 +154,12 @@ namespace osu.Game.Database
} }
else else
{ {
notification.CompletionText = imported.Count == 1 if (tasks.Length > imported.Count)
? $"Imported {imported.First().GetDisplayString()}!" notification.CompletionText = $"Imported {imported.Count} out of {tasks.Length} {HumanisedModelName}s.";
: $"Imported {imported.Count} {HumanisedModelName}s!"; else if (imported.Count > 1)
notification.CompletionText = $"Imported {imported.Count} {HumanisedModelName}s!";
else
notification.CompletionText = $"Imported {imported.First().GetDisplayString()}!";
if (imported.Count > 0 && PresentImport != null) if (imported.Count > 0 && PresentImport != null)
{ {