1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-28 06:09:55 +08:00

Add importing state to download notification

This commit is contained in:
Dean Herbert
2017-10-25 11:49:00 +09:00
Unverified
parent 040fa3aa15
commit f1f7557f6e
+3 -1
View File
@@ -244,7 +244,7 @@ namespace osu.Game.Beatmaps
request.Success += data =>
{
downloadNotification.State = ProgressNotificationState.Completed;
downloadNotification.Text = $"Importing {beatmapSetInfo.Metadata.Artist} - {beatmapSetInfo.Metadata.Title}";
Task.Factory.StartNew(() =>
{
@@ -252,6 +252,8 @@ namespace osu.Game.Beatmaps
using (var stream = new MemoryStream(data))
using (var archive = new OszArchiveReader(stream))
Import(archive);
downloadNotification.State = ProgressNotificationState.Completed;
}, TaskCreationOptions.LongRunning);
currentDownloads.Remove(request);