1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-22 21:40:49 +08:00

Allow user cancellation

This commit is contained in:
Dean Herbert
2023-07-04 18:22:10 +09:00
Unverified
parent 257a96ef60
commit 56bfb92ba6
+3
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;