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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user