mirror of
https://github.com/ppy/osu.git
synced 2026-05-22 18:20:47 +08:00
Always set progress before updating download state
Without doing so, a state change may read from an old progress value.
This commit is contained in:
@@ -123,13 +123,13 @@ namespace osu.Game.Online
|
||||
{
|
||||
if (attachedRequest.Progress == 1)
|
||||
{
|
||||
State.Value = DownloadState.Importing;
|
||||
Progress.Value = 1;
|
||||
State.Value = DownloadState.Importing;
|
||||
}
|
||||
else
|
||||
{
|
||||
State.Value = DownloadState.Downloading;
|
||||
Progress.Value = attachedRequest.Progress;
|
||||
State.Value = DownloadState.Downloading;
|
||||
|
||||
attachedRequest.Failure += onRequestFailure;
|
||||
attachedRequest.DownloadProgressed += onRequestProgress;
|
||||
|
||||
Reference in New Issue
Block a user