1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-24 16:17:23 +08:00

Allow user cancellation

This commit is contained in:
Dean Herbert 2023-07-04 18:22:10 +09:00
parent 257a96ef60
commit 56bfb92ba6

View File

@ -219,6 +219,9 @@ namespace osu.Game
foreach (var id in scoreIds)
{
if (notification.State == ProgressNotificationState.Cancelled)
break;
notification.Text = $"Upgrading scores to new scoring algorithm ({processedCount} of {scoreIds.Count})";
notification.Progress = (float)processedCount / scoreIds.Count;