mirror of
https://github.com/ppy/osu.git
synced 2025-03-15 15:27:20 +08: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 =>
|
||||
{
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user