mirror of
https://github.com/ppy/osu.git
synced 2025-03-11 01:07:23 +08:00
Fix differential submission process crashing when no files have changed
Closes https://github.com/ppy/osu/issues/32247.
This commit is contained in:
parent
97749e188d
commit
0f0dd58b69
@ -304,7 +304,7 @@ namespace osu.Game.Screens.Edit.Submission
|
|||||||
Logger.Log($"Beatmap submission failed on upload: {ex}");
|
Logger.Log($"Beatmap submission failed on upload: {ex}");
|
||||||
allowExit();
|
allowExit();
|
||||||
};
|
};
|
||||||
patchRequest.Progressed += (current, total) => uploadStep.SetInProgress((float)current / total);
|
patchRequest.Progressed += (current, total) => uploadStep.SetInProgress(total > 0 ? (float)current / total : null);
|
||||||
|
|
||||||
api.Queue(patchRequest);
|
api.Queue(patchRequest);
|
||||||
uploadStep.SetInProgress();
|
uploadStep.SetInProgress();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user