1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-29 23:01:12 +08:00

Merge pull request #32248 from bdach/fix-submission-crash

Fix differential submission process crashing when no files have changed
This commit is contained in:
Dean Herbert
2025-03-06 18:45:59 +09:00
committed by GitHub
Unverified
@@ -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();