Merge remote-tracking branch 'upstream/master' into add-skin-import-delete

This commit is contained in:
Dean Herbert
2018-09-07 18:18:03 +09:00
5 changed files with 61 additions and 8 deletions

View File

@ -173,10 +173,20 @@ namespace osu.Game.Database
else
{
notification.CompletionText = $"Imported {current} {typeof(TModel).Name.Replace("Info", "").ToLower()}s!";
notification.CompletionClickAction += () =>
{
if (imported.Count > 0)
PresentCompletedImport(imported);
return true;
};
notification.State = ProgressNotificationState.Completed;
}
}
protected virtual void PresentCompletedImport(IEnumerable<TModel> imported)
{
}
/// <summary>
/// Import an item from an <see cref="ArchiveReader"/>.
/// </summary>