mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Enforce float
type in the download progress path instead
This commit is contained in:
@ -12,16 +12,16 @@ namespace osu.Game.Online.API
|
||||
|
||||
public double Progress { get; private set; }
|
||||
|
||||
public event Action<double> DownloadProgressed;
|
||||
public event Action<float> DownloadProgressed;
|
||||
|
||||
protected ArchiveDownloadRequest(TModel model)
|
||||
{
|
||||
Model = model;
|
||||
|
||||
Progressed += (current, total) => SetProgress((double)current / total);
|
||||
Progressed += (current, total) => SetProgress((float)current / total);
|
||||
}
|
||||
|
||||
protected void SetProgress(double progress)
|
||||
protected void SetProgress(float progress)
|
||||
{
|
||||
Progress = progress;
|
||||
DownloadProgressed?.Invoke(progress);
|
||||
|
Reference in New Issue
Block a user