1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-10 18:57:20 +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:
Bartłomiej Dach 2025-03-06 09:45:44 +01:00
parent 97749e188d
commit 0f0dd58b69
No known key found for this signature in database

View File

@ -304,7 +304,7 @@ namespace osu.Game.Screens.Edit.Submission
Logger.Log($"Beatmap submission failed on upload: {ex}");
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);
uploadStep.SetInProgress();