mirror of
https://github.com/ppy/osu
synced 2025-03-30 15:17:22 +00:00
Use the specifically created progress action, add license header.
This commit is contained in:
parent
5a3814b02e
commit
20becbe576
osu.Game
@ -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;
|
using System;
|
||||||
|
|
||||||
namespace osu.Game.Online.API.Requests
|
namespace osu.Game.Online.API.Requests
|
||||||
|
@ -60,13 +60,7 @@ namespace osu.Game.Overlays.Direct
|
|||||||
Logger.Error(e, "Failed to get beatmap download information");
|
Logger.Error(e, "Failed to get beatmap download information");
|
||||||
};
|
};
|
||||||
|
|
||||||
downloadRequest.Progress += (current, total) =>
|
downloadRequest.DownloadProgressed += progress => progressBar.Current.Value = progress;
|
||||||
{
|
|
||||||
float progress = (float)current / total;
|
|
||||||
|
|
||||||
progressBar.Current.Value = progress;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
downloadRequest.Success += data =>
|
downloadRequest.Success += data =>
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user