1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 21:07:33 +08:00

Expose method for setting progress of archive download request

This commit is contained in:
Salman Ahmed 2021-01-16 23:17:05 +03:00
parent 4778686dc4
commit 23c7afa573

View File

@ -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);
}
}
}