Improve model deletion notification text

This commit is contained in:
smoogipoo
2019-06-12 17:27:15 +09:00
parent ddbd240d76
commit d4deac48ee

View File

@ -392,7 +392,8 @@ namespace osu.Game.Database
var notification = new ProgressNotification var notification = new ProgressNotification
{ {
Progress = 0, Progress = 0,
CompletionText = $"Deleted all {typeof(TModel).Name.Replace("Info", "").ToLower()}s!", Text = $"Preparing to delete all {humanisedModelName}s...",
CompletionText = $"Deleted all {humanisedModelName}s!",
State = ProgressNotificationState.Active, State = ProgressNotificationState.Active,
}; };
@ -409,7 +410,7 @@ namespace osu.Game.Database
// user requested abort // user requested abort
return; return;
notification.Text = $"Deleting ({++i} of {items.Count})"; notification.Text = $"Deleting {humanisedModelName}s ({++i} of {items.Count})";
Delete(b); Delete(b);