mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 21:47:25 +08:00
Expose method for setting progress of archive download request
This commit is contained in:
parent
4778686dc4
commit
23c7afa573
@ -18,7 +18,13 @@ namespace osu.Game.Online.API
|
|||||||
{
|
{
|
||||||
Model = model;
|
Model = model;
|
||||||
|
|
||||||
Progressed += (current, total) => DownloadProgressed?.Invoke(Progress = (float)current / total);
|
Progressed += (current, total) => SetProgress((float)current / total);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void SetProgress(float progress)
|
||||||
|
{
|
||||||
|
Progress = progress;
|
||||||
|
DownloadProgressed?.Invoke(progress);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user