mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Use the specifically created progress action, add license header.
This commit is contained in:
@ -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 =>
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user