Specify model name on import notification messages

This commit is contained in:
iiSaLMaN 2019-09-20 15:46:43 +03:00
parent 234c8e9067
commit 8300e86f20

View File

@ -7,6 +7,7 @@ using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Humanizer;
using JetBrains.Annotations;
using Microsoft.EntityFrameworkCore;
using osu.Framework;
@ -110,7 +111,7 @@ namespace osu.Game.Database
protected async Task Import(ProgressNotification notification, params string[] paths)
{
notification.Progress = 0;
notification.Text = "Import is initialising...";
notification.Text = $"{HumanisedModelName.Humanize()}s import is initialising...";
int current = 0;
@ -146,7 +147,7 @@ namespace osu.Game.Database
if (imported.Count == 0)
{
notification.Text = "Import failed!";
notification.Text = $"{HumanisedModelName.Humanize()}s import failed!";
notification.State = ProgressNotificationState.Cancelled;
}
else