1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-19 10:12:53 +08:00

Use the specifically created progress action, add license header.

This commit is contained in:
naoey 2017-09-09 01:53:42 +05:30
parent 5a3814b02e
commit 20becbe576
2 changed files with 5 additions and 8 deletions

View File

@ -1,4 +1,7 @@
using osu.Game.Beatmaps;
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Game.Beatmaps;
using System;
namespace osu.Game.Online.API.Requests

View File

@ -60,13 +60,7 @@ namespace osu.Game.Overlays.Direct
Logger.Error(e, "Failed to get beatmap download information");
};
downloadRequest.Progress += (current, total) =>
{
float progress = (float)current / total;
progressBar.Current.Value = progress;
};
downloadRequest.DownloadProgressed += progress => progressBar.Current.Value = progress;
downloadRequest.Success += data =>
{