mirror of
https://github.com/ppy/osu.git
synced 2026-05-23 00:20:38 +08:00
Allow user cancellation
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user