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:
parent
97749e188d
commit
0f0dd58b69
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user