mirror of
https://github.com/ppy/osu
synced 2025-03-21 18:38:25 +00:00
Add importing state to download notification
This commit is contained in:
parent
040fa3aa15
commit
f1f7557f6e
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user