1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 09:07:25 +08:00

Improve import progress messaging

This commit is contained in:
Dean Herbert 2018-08-31 18:32:21 +09:00
parent 144e80dff6
commit e67f63eab6

View File

@ -168,6 +168,7 @@ namespace osu.Game.Database
} }
notification.Text = errors > 0 ? $"Import complete with {errors} errors" : "Import successful!"; notification.Text = errors > 0 ? $"Import complete with {errors} errors" : "Import successful!";
notification.CompletionText = $"Imported {current} {typeof(TModel).Name.Replace("Info", "").ToLower()}s!";
notification.State = ProgressNotificationState.Completed; notification.State = ProgressNotificationState.Completed;
} }
@ -284,7 +285,7 @@ namespace osu.Game.Database
var notification = new ProgressNotification var notification = new ProgressNotification
{ {
Progress = 0, Progress = 0,
CompletionText = $"Deleted all {typeof(TModel)}s!", CompletionText = $"Deleted all {typeof(TModel).Name.Replace("Info", "").ToLower()}s!",
State = ProgressNotificationState.Active, State = ProgressNotificationState.Active,
}; };