Add importing state to download notification

This commit is contained in:
Dean Herbert 2017-10-25 11:49:00 +09:00
parent 040fa3aa15
commit f1f7557f6e

View File

@ -244,7 +244,7 @@ namespace osu.Game.Beatmaps
request.Success += data => request.Success += data =>
{ {
downloadNotification.State = ProgressNotificationState.Completed; downloadNotification.Text = $"Importing {beatmapSetInfo.Metadata.Artist} - {beatmapSetInfo.Metadata.Title}";
Task.Factory.StartNew(() => Task.Factory.StartNew(() =>
{ {
@ -252,6 +252,8 @@ namespace osu.Game.Beatmaps
using (var stream = new MemoryStream(data)) using (var stream = new MemoryStream(data))
using (var archive = new OszArchiveReader(stream)) using (var archive = new OszArchiveReader(stream))
Import(archive); Import(archive);
downloadNotification.State = ProgressNotificationState.Completed;
}, TaskCreationOptions.LongRunning); }, TaskCreationOptions.LongRunning);
currentDownloads.Remove(request); currentDownloads.Remove(request);