mirror of
https://github.com/ppy/osu
synced 2024-12-14 02:46:27 +00: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;
|
||||
|
||||
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